Skip to content

Commit 3246816

Browse files
author
Christian Wimmer
committed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/DisallowedImageHeapObjectFeature.java edited online with Bitbucket
1 parent 5fa6b0e commit 3246816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/DisallowedImageHeapObjectFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private RuntimeException error(String msg, Object obj, String initializerAction)
172172
if (!ClassInitializationOptions.UseDeprecatedOldClassInitialization.getValue()) {
173173
suffix = System.lineSeparator() +
174174
"If you see this error while migrating to a newer GraalVM release, please note that the class initialization strategy has changed in GraalVM for JDK 21." +
175-
" It is not allowed to use all classes at image build time. However, only classes explicitly marked as --initialize-at-built-time are allowed to be in the image heap." +
175+
" All classes can now be used at image build time. However, only classes explicitly marked as --initialize-at-built-time are allowed to be in the image heap." +
176176
" This rule is now strictly enforced, i.e., the problem might be solvable by registering the reported type as --initialize-at-built-time.";
177177
}
178178
throw new UnsupportedFeatureException(msg + " " + classInitialization.objectInstantiationTraceMessage(obj, initializerAction) + " " +

0 commit comments

Comments
 (0)