This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/25389] New: File(new URI("file:./")) -> java.lang.NullPointerException
- From: "caolanm at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 13 Dec 2005 11:20:16 -0000
- Subject: [Bug java/25389] New: File(new URI("file:./")) -> java.lang.NullPointerException
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
A regression in 4.1.0 which is not in 4.0.2, brings OOo java component
registration to its knees. Sample source inline
import java.net.URI;
import java.io.File;
class myfirstprog
{
public static void main(String args[])
{
URI uriObject = null;
try {
uriObject = new URI("file:./");
}
catch (Exception e) {
}
System.err.println("urlObject is " + uriObject);
File uriFile = null;
uriFile = new File(uriObject);
System.err.println("uriFile is " + uriFile);
}
}
output from 4.1.0 is...
urlObject is file:./
Exception in thread "main" java.lang.NullPointerException
<<No stacktrace available>>
output from 4.2.0 was...
urlObject is file:./
uriFile is .
--
Summary: File(new URI("file:./")) ->
java.lang.NullPointerException
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: caolanm at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25389