This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/24433] New: GIJ interprets null too eagerly
- From: "thebohemian at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 18 Oct 2005 18:42:13 -0000
- Subject: [Bug libgcj/24433] New: GIJ interprets null too eagerly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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