This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug classpath/25389] File(new URI("file:./")) -> java.lang.NullPointerException
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 14 Dec 2005 00:51:02 -0000
- Subject: [Bug classpath/25389] File(new URI("file:./")) -> java.lang.NullPointerException
- References: <bug-25389-8961@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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