Skip to content

Commit

Permalink
Adapt tests to lack of SecurityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi committed Jan 2, 2025
1 parent c99e222 commit 55dd358
Show file tree
Hide file tree
Showing 34 changed files with 6 additions and 811 deletions.
47 changes: 0 additions & 47 deletions test/nashorn/script/basic/JDK-8010946-privileged.js

This file was deleted.

51 changes: 0 additions & 51 deletions test/nashorn/script/basic/JDK-8010946.js

This file was deleted.

5 changes: 0 additions & 5 deletions test/nashorn/script/basic/JDK-8010946.js.EXPECTED

This file was deleted.

37 changes: 0 additions & 37 deletions test/nashorn/script/basic/JDK-8020508.js

This file was deleted.

1 change: 0 additions & 1 deletion test/nashorn/script/basic/JDK-8020508.js.EXPECTED

This file was deleted.

14 changes: 0 additions & 14 deletions test/nashorn/script/basic/JDK-8158467.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ EOF);
print(obj.hashCode());
print(obj.toString());

// should throw SecurityException!
try {
e.eval("Packages.jdk.internal");
} catch (ex) {
print(ex);
}

// should throw SecurityException!
try {
e.eval("Java.type('jdk.internal.misc.Unsafe')");
} catch (ex) {
print(ex);
}

// should throw ClassNotFoundException!
try {
e.eval("Java.type('org.openjdk.nashorn.internal.runtime.Context')");
Expand Down
2 changes: 0 additions & 2 deletions test/nashorn/script/basic/JDK-8158467.js.EXPECTED
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
hello Runnable
33
I'm object
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal")
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.misc")
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.openjdk.nashorn.internal.runtime.Context
java.lang.ClassNotFoundException: org.openjdk.nashorn.api.scripting.JSObject
41 changes: 0 additions & 41 deletions test/nashorn/script/basic/classloader.js

This file was deleted.

1 change: 0 additions & 1 deletion test/nashorn/script/basic/classloader.js.EXPECTED

This file was deleted.

39 changes: 0 additions & 39 deletions test/nashorn/script/sandbox/JDK-8031106.js

This file was deleted.

41 changes: 0 additions & 41 deletions test/nashorn/script/sandbox/classbind.js

This file was deleted.

63 changes: 0 additions & 63 deletions test/nashorn/script/sandbox/classloader.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/nashorn/script/sandbox/classloader.js.EXPECTED

This file was deleted.

Loading

0 comments on commit 55dd358

Please sign in to comment.