This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Don't call setProperty if getProperty return null.

2009-07-09 Mario Torre <>

    * gnu/testlet/java/lang/Class/security:
    Don't call setProperty if getProperty return null.

Mario Torre, Software Developer,
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany   * Tel: +49-721-663 968-44
pgp key: PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:

# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: mauve/gnu/testlet/java/lang/Class/
--- mauve/gnu/testlet/java/lang/Class/ Base (1.7)
+++ mauve/gnu/testlet/java/lang/Class/ Locally Modified (Based On 1.7)
@@ -159,9 +159,12 @@
       finally {
+        if (oldrestrictions != null)
+          {
 	Security.setProperty("package.access", oldrestrictions);
+    }
     catch (Exception ex) {
       harness.check(false, "Unexpected exception");

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]