File tree 1 file changed +6
-5
lines changed
truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ final class InternalResourceCache {
95
95
96
96
/**
97
97
* Recomputed before the analyses by a substitution in the {@code TruffleBaseFeature} based on
98
- * the {@code CopyLanguageResources} option value. The field must not be declared as
99
- * {@code final} to make the substitution function correctly .
98
+ * the {@code CopyLanguageResources} option value. The field must not qualify as a Java language
99
+ * constant (as defined in JLS 15.28) to prevent the Java compiler from inlining its value .
100
100
*/
101
- private static boolean useInternalResources = true ;
101
+ private static final boolean useInternalResources = Boolean . TRUE . booleanValue () ;
102
102
private static boolean useExternalDirectoryInNativeImage = true ;
103
103
104
104
private final String id ;
@@ -292,8 +292,9 @@ private static String sanitize(String pathElement) {
292
292
}
293
293
294
294
/**
295
- * Returns true if internal resources are enabled. Internal resources can be disabled in the
296
- * native image using {-H:-CopyLanguageResources} option.
295
+ * Returns true if internal resources are enabled. Internal resources are disabled in the native
296
+ * image when both the copying and inclusion of language resources are turned off. This can be
297
+ * achieved by using the {@code -H:-IncludeLanguageResources} option.
297
298
*/
298
299
public static boolean usesInternalResources () {
299
300
return useInternalResources ;
You can’t perform that action at this time.
0 commit comments