This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]