public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: Don't call setProperty if getProperty return null.
@ 2009-07-24 12:10 Mario Torre
  0 siblings, 0 replies; only message in thread
From: Mario Torre @ 2009-07-24 12:10 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

2009-07-09  Mario Torre  <neugens@aicas.com>

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

Cheers,
Mario
-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-44
pgp key: http://subkeys.pgp.net/ 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:
http://endsoftpatents.org/


[-- Attachment #2: 2009-07-24-class-null-property.patch --]
[-- Type: text/x-patch, Size: 744 bytes --]

# 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/security.java
--- mauve/gnu/testlet/java/lang/Class/security.java Base (1.7)
+++ mauve/gnu/testlet/java/lang/Class/security.java Locally Modified (Based On 1.7)
@@ -159,9 +159,12 @@
 	}
       }
       finally {
+        if (oldrestrictions != null)
+          {
 	Security.setProperty("package.access", oldrestrictions);
       }
     }
+    }
     catch (Exception ex) {
       harness.debug(ex);
       harness.check(false, "Unexpected exception");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-24 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-24 12:10 FYI: Don't call setProperty if getProperty return null Mario Torre

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).