Skip to content

Commit 9dffad8

Browse files
committed
Always inject declared type for JNI accessed fields.
1 parent a9aade0 commit 9dffad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/PointsToAnalysis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public void forceUnsafeUpdate() {
265265

266266
@Override
267267
public void registerAsJNIAccessed(AnalysisField field, boolean writable) {
268-
if (writable && isSupportedJavaKind(field.getStorageKind())) {
268+
if (isSupportedJavaKind(field.getStorageKind())) {
269269
field.injectDeclaredType();
270270
}
271271
}

0 commit comments

Comments
 (0)