* FYI: Test security manager fix
@ 2006-01-04 11:28 Gary Benson
0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-01-04 11:28 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
Hi everyone,
This patch makes the test security manager load some classes on
initialisation. This avoids some intermittent infinite loops that
occur when the test security manager is in force.
Cheers,
Gary
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1509 bytes --]
Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1330
diff -u -r1.1330 ChangeLog
--- ChangeLog 3 Jan 2006 22:45:32 -0000 1.1330
+++ ChangeLog 4 Jan 2006 11:20:25 -0000
@@ -1,3 +1,8 @@
+2006-01-04 Gary Benson <gbenson@redhat.com>
+
+ * gnu/testlet/TestSecurityManager2.java (TestSecurityManager2):
+ Preload some classes to avoid infinite loops when in force.
+
2006-01-03 Tom Tromey <tromey@redhat.com>
* gnu/testlet/java/lang/String/getBytes13.java (dumpArray): New
Index: gnu/testlet/TestSecurityManager2.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/TestSecurityManager2.java,v
retrieving revision 1.2
diff -u -r1.2 TestSecurityManager2.java
--- gnu/testlet/TestSecurityManager2.java 18 Apr 2004 14:18:28 -0000 1.2
+++ gnu/testlet/TestSecurityManager2.java 4 Jan 2006 11:20:25 -0000
@@ -40,6 +40,20 @@
public TestSecurityManager2(TestHarness harness) {
super();
this.harness = harness;
+
+ // Preload some classes to avoid infinite loops
+ String[] preload = new String[] {
+ "java.lang.StringBuffer", // needed by checkCheck()
+ "java.lang.RuntimePermission" // needed by uninstall()
+ };
+ for (int i = 0; i < preload.length; i++) {
+ try {
+ Class.forName(preload[i]);
+ }
+ catch (ClassNotFoundException e) {
+ harness.debug(e);
+ }
+ }
}
public void install()
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-04 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-04 11:28 FYI: Test security manager fix Gary Benson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).