Skip to content

Commit f0f6984

Browse files
committed
throw should not reach here on runtime access
1 parent 4fddc02 commit f0f6984

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/snippets/SubstrateGraphBuilderPlugins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec
11511151
* to ensure certain singleton are not installed into the image.
11521152
*/
11531153
if (!RuntimeCompilation.isEnabled()) {
1154-
throw b.bailout("Layered image singleton without runtime access is in runtime graph: " + singleton);
1154+
throw VMError.shouldNotReachHere("Layered image singleton without runtime access is in runtime graph: " + singleton);
11551155
}
11561156
}
11571157
b.addPush(JavaKind.Object, ConstantNode.forConstant(b.getSnippetReflection().forObject(singleton), b.getMetaAccess()));

0 commit comments

Comments
 (0)