8244852: GraalVM native-image fails after JDK-8238048 change

Reviewed-by: dholmes
This commit is contained in:
Bob Vandette 2020-05-13 11:33:52 -04:00
parent 398a2b3c37
commit 658fb7ac3e

View File

@ -818,7 +818,7 @@ final class HotSpotResolvedObjectTypeImpl extends HotSpotResolvedJavaType implem
@Override
public String getSourceFileName() {
if (isArray()) {
throw new JVMCIError("Cannot call getSourceFileName() on an array klass type: %s", this);
return null;
}
return getConstantPool().getSourceFileName();
}