[PATCH] support security.manager property
Bryce McKinlay
mckinlay@redhat.com
Sat Jul 31 22:06:00 GMT 2004
Casey Marshall wrote:
>A nice property of this change is that natively linked binaries (read:
>gcjappletviewer) can have a security manager set at compile-time.
>
>2004-07-29 Casey Marshall <csm@gnu.org>
>
> * prims.cc (_Jv_RunMain): install a security manager if the
> `security.manager' property is set.
>
>
Casey,
This looks good, but I don't think _Jv_RunMain is the right place for
this code. For one thing, it won't work when the runtime is started by
invocation, because _Jv_RunMain isn't called.
It looks to me like the code doesn't have to be native - wouldn't this
be better done in the static initializer for java.lang.Runtime?
Regards
Bryce
More information about the Java-patches
mailing list