classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System.getProperty & SecurityManager


From: Tom Tromey
Subject: Re: System.getProperty & SecurityManager
Date: 15 Apr 2004 12:10:43 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Ewout" == Ewout Prangsma <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]