FYI: Throwable initialization and security check fixups from GNU Classpath

Mark Wielaard mark@klomp.org
Mon Sep 27 14:38:00 GMT 2004


Hi,

This merges the Throwable initialization and security check fixups from
GNU Classpath.

2004-09-26  Mark Wielaard  <mark@klomp.org>

        * java/lang/Throwable.java (StaticData.nl): Make package private.

        * java/lang/System.java (properties): Make package private.
        * java/lang/Throwable.java (StaticData.nl): Initialize through
        directly accessing System.properties.getProperty().

        * java/lang/Throwable.java (nl): Remove static field.
        (StaticData): New private static inner class.
        (stackTraceStringBuffer): Use StaticData.nl.

The new private static inner class makes sure that the nl field is only
initialized when a stack trace is actually printed. And by using the
System.properties field directly we avoid a security check.
Committed to mainline.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: throwable-fixup.patch
Type: text/x-patch
Size: 2197 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040927/79e8d758/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040927/79e8d758/attachment.sig>


More information about the Java-patches mailing list