[PATCH] support security.manager property
Tom Tromey
tromey@redhat.com
Sat Jul 31 13:44:00 GMT 2004
>>>>> "Casey" == Casey Marshall <csm@gnu.org> writes:
Casey> 2004-07-29 Casey Marshall <csm@gnu.org>
Casey> * prims.cc (_Jv_RunMain): install a security manager if the
Casey> `security.manager' property is set.
This looks good to me.
Could you add an entry for this to the System Properties node of
gcc/gcc/java/gcj.texi?
I also have a couple formatting nits below.
Casey> + java::lang::String *smgr = java::lang::System::getProperty
Casey> + (JvNewStringLatin1 ("security.manager"));
Hmm, try breaking before the `=' instead to see if that helps.
Sometimes I add a "using" to make the indentation look nicer.
Casey> + java::lang::Runtime::securityManager =
Casey> + new java::lang::SecurityManager();
Line break before `=', not after.
Casey> + if (!java::lang::SecurityManager::class$.isAssignableFrom (clazz))
Space after "!".
Tom
More information about the Java-patches
mailing list