-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b08
-
sparc
-
solaris_9
-
Verified
Boolean.getBoolean() does not list SecurityException in its throws clause.
It may mislead people to think that this method can be used instead of
System.getProperty() to get around security constraints. But it actually throws
SecurityException.
If it is intended that it should not throw SecurityException, privileged code block
should be used when calling System.getProperty().
Same problem applies to
Integer.getInteger()
Long.getLong()
###@###.### 2005-05-10 21:40:38 GMT
It may mislead people to think that this method can be used instead of
System.getProperty() to get around security constraints. But it actually throws
SecurityException.
If it is intended that it should not throw SecurityException, privileged code block
should be used when calling System.getProperty().
Same problem applies to
Integer.getInteger()
Long.getLong()
###@###.### 2005-05-10 21:40:38 GMT