[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
System.getProperty & SecurityManager
From: |
Ewout Prangsma |
Subject: |
System.getProperty & SecurityManager |
Date: |
Thu, 15 Apr 2004 19:47:29 +0200 |
Hi all,
I've noticed lots of System.getProperty calls in classpath.
These calls can throw security exceptions when a security manager is active.
To avoid this wrap the getProperty call in a PrivilegedAction. I've written
some helper classes to avoid retyping that every time. I'm happy to send
them.
PS. The security manager also causes other issues, but getProperty is most
frequent.
Ewout