>>>>> "Ewout" == Ewout Prangsma <[EMAIL PROTECTED]> writes:

Ewout> I've noticed lots of System.getProperty calls in classpath.
Ewout> These calls can throw security exceptions when a security
Ewout> manager is active.

Ewout> To avoid this wrap the getProperty call in a
Ewout> PrivilegedAction. I've written some helper classes to avoid
Ewout> retyping that every time. I'm happy to send them.

Ewout> PS. The security manager also causes other issues, but
Ewout> getProperty is most frequent.

The security manager code hasn't been used very much.  It's great that
you're trying this out.  We're definitely interested in patches to
wrap these calls.  In some cases it would also be good to just cache
the result...

Tom


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to