File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/test/groovy/org/codehaus/groovy/reflection Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3535
3636public class SecurityTest extends GroovyTestCase {
3737
38+ private final boolean skip = Runtime .version ().feature () >= 24 ;
39+
3840 @ SuppressWarnings ("unused" )
3941 public class TestClass {
4042 public String publicField ;
@@ -84,6 +86,7 @@ public boolean isMethodCalled() {
8486
8587 @ SuppressWarnings ("removal" ) // TODO in a future Groovy version remove reference to SecurityManager & AccessControlException
8688 public void setUp () {
89+ if (skip ) return ;
8790 // Forbidding suppressAccessChecks in the test will make the internal implementation of some JDK fail,
8891 // so load vm plugin before security manager is installed:
8992 /*
@@ -114,6 +117,7 @@ public void checkPermission(Permission perm) {
114117
115118 @ SuppressWarnings ("removal" ) // TODO in a future Groovy version remove reference to SecurityManager, for now not run for JDK18+
116119 public void tearDown (){
120+ if (skip ) return ;
117121 System .setSecurityManager (null );
118122 }
119123
You can’t perform that action at this time.
0 commit comments