Skip to content

Commit 4f4c986

Browse files
committed
Enable System.security reflection test for JDK24
1 parent 5dbaa8f commit 4f4c986

File tree

1 file changed

+4
-11
lines changed
  • test/functional/Java8andUp/src_110_up/org/openj9/test/java/lang

1 file changed

+4
-11
lines changed

test/functional/Java8andUp/src_110_up/org/openj9/test/java/lang/Test_Class.java

+4-11
Original file line numberDiff line numberDiff line change
@@ -719,17 +719,10 @@ public void test_getDeclaredFieldLjava_lang_String() {
719719
}
720720
*/
721721

722-
/**
723-
* Disable temporarily for Java 24+ until the
724-
* System.security field is removed.
725-
* https://github.com/eclipse-openj9/openj9/issues/20563
726-
*/
727-
if (VersionCheck.major() < 24) {
728-
try {
729-
java.lang.reflect.Field f = System.class.getDeclaredField("security");
730-
Assert.fail("java.lang.System.security shoud NOT be accessible via reflection");
731-
} catch (NoSuchFieldException e) {
732-
}
722+
try {
723+
java.lang.reflect.Field f = System.class.getDeclaredField("security");
724+
Assert.fail("java.lang.System.security shoud NOT be accessible via reflection");
725+
} catch (NoSuchFieldException e) {
733726
}
734727

735728
try {

0 commit comments

Comments
 (0)