Patch: java.io.File StringOutOfBoundsException

Bryce McKinlay bryce@albatross.co.nz
Sun Feb 27 02:40:00 GMT 2000


The (String, String) constructor to java.io.File would throw a
StringIndexOutOfBoundsException if the empty string was passed as the
first argument.

I'm commiting this trivial patch.

  [ bryce ]

2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>

       * java/io/File.java (File(String, String)): For dirPath, treat an

       empty String the same as `null'.




More information about the Java-patches mailing list