Skip to content

Apache Lucene open-source search software

LUCENE-3574: Small fix: use the ident() hack to prevent inlining the constant into foreign class files

Uwe Schindlerc1f11fbb8160
diff --git a/lucene/src/java/org/apache/lucene/util/Constants.java b/lucene/src/java/org/apache/lucene/util/Constants.java
index 814ad430ad4..f1723947263 100644
--- a/lucene/src/java/org/apache/lucene/util/Constants.java
+++ b/lucene/src/java/org/apache/lucene/util/Constants.java
@@ -46,7 +46,8 @@ public final class Constants {
/** @deprecated With Lucene 4.0, we are always on Java 6 */
@Deprecated
- public static final boolean JRE_IS_MINIMUM_JAVA6 = true;
+ public static final boolean JRE_IS_MINIMUM_JAVA6 =
+ new Boolean(true).booleanValue(); // prevent inlining in foreign class files
public static final boolean JRE_IS_64BIT;
public static final boolean JRE_IS_MINIMUM_JAVA7;