Skip to content

Commit 51b4a3e

Browse files
committed
Apply class init issue corner case to all extension layers.
1 parent a5bf309 commit 51b4a3e

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/classinitialization/ClassInitializationSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public void forceInitializeHosted(Class<?> clazz, String reason, boolean allowIn
411411
InitKind initKind = ensureClassInitialized(clazz, allowInitializationErrors);
412412
if (initKind == InitKind.RUN_TIME) {
413413
assert allowInitializationErrors || !LinkAtBuildTimeSupport.singleton().linkAtBuildTime(clazz);
414-
if (ImageLayerBuildingSupport.buildingApplicationLayer()) {
414+
if (ImageLayerBuildingSupport.buildingExtensionLayer()) {
415415
/*
416416
* Special case for application layer building. If a base layer class was configured
417417
* with --initialize-at-build-time but its initialization failed, then the computed

0 commit comments

Comments
 (0)