[Bug classpath/25389] File(new URI("file:./")) -> java.lang.NullPointerException

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 14 00:51:00 GMT 2005



------- Comment #5 from tromey at gcc dot gnu dot org  2005-12-14 00:51 -------
URLs are handled differently.
If you do new File("./").toURI() you will get a URI
with the absolute path name in it -- i.e., a
hierarchical one.  The same happens for
new File("./").toURL().toURI()

Caolan -- if we changed this to throw an IllegalArgumentException,
would that help?  I'm wondering how this code can work in OO.o.
Another way it could work is if there is variance between JDK versions
and you've only happened to try ones where it works somehow.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25389



More information about the Gcc-bugs mailing list