You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/11/02 10:49:08 UTC
lucene-solr:master: LUCENE-7135: only use OS_ARCH if we couldn't
access sun.arch.data.model
Repository: lucene-solr
Updated Branches:
refs/heads/master 69e654b37 -> 92f56ea9d
LUCENE-7135: only use OS_ARCH if we couldn't access sun.arch.data.model
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/92f56ea9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/92f56ea9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/92f56ea9
Branch: refs/heads/master
Commit: 92f56ea9dd72d935c21aadae6a20ee23fa9c3cf8
Parents: 69e654b
Author: Mike McCandless <mi...@apache.org>
Authored: Wed Nov 2 06:48:29 2016 -0400
Committer: Mike McCandless <mi...@apache.org>
Committed: Wed Nov 2 06:48:29 2016 -0400
----------------------------------------------------------------------
.../core/src/java/org/apache/lucene/util/Constants.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/92f56ea9/lucene/core/src/java/org/apache/lucene/util/Constants.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/util/Constants.java b/lucene/core/src/java/org/apache/lucene/util/Constants.java
index e6a9609..007ef85 100644
--- a/lucene/core/src/java/org/apache/lucene/util/Constants.java
+++ b/lucene/core/src/java/org/apache/lucene/util/Constants.java
@@ -75,10 +75,12 @@ public final class Constants {
is64Bit = datamodel.contains("64");
}
} catch (SecurityException ex) {}
- if (datamodel == null && OS_ARCH != null && OS_ARCH.contains("64")) {
- is64Bit = true;
- } else {
- is64Bit = false;
+ if (datamodel == null) {
+ if (OS_ARCH != null && OS_ARCH.contains("64")) {
+ is64Bit = true;
+ } else {
+ is64Bit = false;
+ }
}
JRE_IS_64BIT = is64Bit;
}