This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Integer.getInteger patch for null argument
Mark Wielaard wrote:
>
> System.getProperty(null) does actually throw the correct
> NullPointerException. But the spec does indeed indicate that
> System.getProperty("") should throw an IllegalArgumentException, which
> it doesn't. Classpath also does this wrong.
Classpath does it wrong only if the java.util.BasicPermission
constructor is not throwing it. The security check to
SecurityManager.checkPropertyAccess should properly throw the exception
for "".
--
This signature intentionally left boring.
Eric Blake ebb9@email.byu.edu
BYU student, free software programmer