This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Re: [PATCH] support security.manager property


>>>>> "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


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