public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/24433]  New: GIJ interprets null too eagerly
@ 2005-10-18 18:42 thebohemian at gmx dot net
  2005-10-18 18:47 ` [Bug libgcj/24433] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: thebohemian at gmx dot net @ 2005-10-18 18:42 UTC (permalink / raw)
  To: java-prs

public class Explain4
{

        static Stuff1[] foo1;
        static Stuff1[][] foo2;
        static Stuff1[][][] foo3;

        Stuff1[] foo4;
        Stuff1[][] foo5;
        Stuff1[][][] foo6;


        public static void main(String[] args)
        {
                System.out.println(foo1);
                System.out.println(foo2);
                System.out.println(foo3);

                Explain4 e = new Explain4();
                System.out.println(e.foo4);
                System.out.println(e.foo5);
                System.out.println(e.foo6);
        }

}

class Stuff1 extends Thread {}

If you compile this, remove the Stuff1.class file and run it the JDK will print
null 6 times.

GIJ however tries to resolve the Stuff1 class, fails and throws a
ClassNotFoundException.


-- 
           Summary: GIJ interprets null too eagerly
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thebohemian at gmx dot net


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


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

* [Bug libgcj/24433] GIJ interprets null too eagerly
  2005-10-18 18:42 [Bug libgcj/24433] New: GIJ interprets null too eagerly thebohemian at gmx dot net
@ 2005-10-18 18:47 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-18 18:47 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-18 18:47 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-18 18:47:07
               date|                            |


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


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

end of thread, other threads:[~2005-10-18 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-18 18:42 [Bug libgcj/24433] New: GIJ interprets null too eagerly thebohemian at gmx dot net
2005-10-18 18:47 ` [Bug libgcj/24433] " pinskia at gcc dot gnu 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).