public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/25389]  New: File(new URI("file:./")) -> java.lang.NullPointerException
@ 2005-12-13 11:20 caolanm at redhat dot com
  2005-12-13 11:46 ` [Bug java/25389] " mark at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: caolanm at redhat dot com @ 2005-12-13 11:20 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-12-14 21:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 11:20 [Bug java/25389] New: File(new URI("file:./")) -> java.lang.NullPointerException caolanm at redhat dot com
2005-12-13 11:46 ` [Bug java/25389] " mark at gcc dot gnu dot org
2005-12-13 13:47 ` [Bug classpath/25389] " mark at gcc dot gnu dot org
2005-12-13 20:07 ` tromey at gcc dot gnu dot org
2005-12-13 22:01 ` mark at gcc dot gnu dot org
2005-12-14  0:51 ` tromey at gcc dot gnu dot org
2005-12-14  0:51 ` tromey at gcc dot gnu dot org
2005-12-14  8:35 ` caolanm at redhat dot com
2005-12-14 18:35 ` tromey at gcc dot gnu dot org
2005-12-14 18:37 ` tromey at gcc dot gnu dot org
2005-12-14 18:37 ` tromey at gcc dot gnu dot org
2005-12-14 21:28 ` cvs-commit at developer dot classpath dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).