File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1042,20 +1042,21 @@ public int getModifiers() {
1042
1042
@ Substitute
1043
1043
int getClassFileAccessFlags () {
1044
1044
if (ImageLayerBuildingSupport .buildingImageLayer ()) {
1045
+ /*
1046
+ * Currently, layered images do not use the Class#classFileAccessFlags. This will be
1047
+ * addressed by GR-68631.
1048
+ */
1045
1049
int classAccessFlags = 0 ;
1046
- for (var reflectionMetadata : LayeredReflectionMetadataSingleton .singletons ()) {
1047
- classAccessFlags |= getClassAccessFlags (reflectionMetadata .getReflectionMetadata (this ));
1050
+ for (var reflectionMetadataSingleton : LayeredReflectionMetadataSingleton .singletons ()) {
1051
+ ReflectionMetadata reflectionMetadata = reflectionMetadataSingleton .getReflectionMetadata (this );
1052
+ classAccessFlags |= reflectionMetadata != null ? (reflectionMetadata .classFlags & CLASS_ACCESS_FLAGS_MASK ) : companion .modifiers ;
1048
1053
}
1049
1054
return classAccessFlags ;
1050
1055
} else {
1051
1056
return companion .classFileAccessFlags ;
1052
1057
}
1053
1058
}
1054
1059
1055
- private int getClassAccessFlags (ReflectionMetadata reflectionMetadata ) {
1056
- return reflectionMetadata != null ? (reflectionMetadata .classFlags & CLASS_ACCESS_FLAGS_MASK ) : companion .modifiers ;
1057
- }
1058
-
1059
1060
@ Substitute
1060
1061
private DynamicHub getComponentType () {
1061
1062
return componentType ;
You can’t perform that action at this time.
0 commit comments