You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/11/14 16:46:05 UTC
svn commit: r1201758 -
/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java
Author: uschindler
Date: Mon Nov 14 15:46:04 2011
New Revision: 1201758
URL: http://svn.apache.org/viewvc?rev=1201758&view=rev
Log:
LUCENE-3574: Small fix: use the ident() hack to prevent inlining the constant into foreign class files
Modified:
lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java
Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java?rev=1201758&r1=1201757&r2=1201758&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/Constants.java Mon Nov 14 15:46:04 2011
@@ -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;