JDK-4935953 : netbeans build crashes Tiger javac with NullPointerException
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-10-10
  • Updated: 2004-05-10
  • Resolved: 2004-05-10
Related Reports
Relates :  
Description
Date: Fri, 10 Oct 2003 13:07:08 -0400 (EDT)
From: <###@###.###>
Subject: Re: netbeans builds w/ target 1.5
To: ###@###.###, ###@###.###
Cc: ###@###.###
Reply-to: <###@###.###>

Hi Neal

Wei found that the NetBeans build problem isn't just with
-target 1.5, it just needs to be a Tiger javac.

I made the smallest reproducible test case I could, and
have attached it.  It'll uncompress & untar to a directory
nbtest, and in there is a 'doit' sh script.

There are some jar files included; I can send you the source
files for anything in there that you need, or you can look
in /net/isher.east/scratch/jane/downloads/netbeans-src .

I still haven't figured out whether this is the same problem
as 4909550 and am still working on narrowing things down further,
but at this point you'll probably be able to see things more
quickly than I can.

I'll also see if I can find a particular Tiger build this starts
to fail with.


Here's the output I get from the doit script:

sh doit
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b23)
Java HotSpot(TM) Server VM (build 1.5.0-beta-b23, mixed mode)
core/src/org/netbeans/core/LoaderPoolNode.java:32: warning: as of release 1.5, 
'enum' is a keyword, and may not be used as an identifier
import org.openide.util.enum.ArrayEnumeration;
                        ^
core/src/org/netbeans/core/projects/FixedFileSystem.java:23: warning: as of 
release 1.5, 'enum' is a keyword, and may not be used as an identifier
import org.openide.util.enum.EmptyEnumeration;
                        ^
An exception has occurred in the compiler (1.5.0-beta). Please file a bug at the 
Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi)  after 
checking the Bug Parade for duplicates. Include your program and the following 
diagnostic in your report.  Thank you.
java.lang.NullPointerException
        at com.sun.tools.javac.code.Type$ClassType.isSubType(Type.java:1393)
        at com.sun.tools.javac.code.Type$ClassType.isSubType(Type.java:1383)
        at com.sun.tools.javac.code.Type.resultSubtype(Type.java:711)
        at 
com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:779)
        at 
com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:827)
        at com.sun.tools.javac.comp.Check.firstUndef(Check.java:1218)
        at com.sun.tools.javac.comp.Check.firstUndef(Check.java:1226)
        at com.sun.tools.javac.comp.Check.checkAllDefined(Check.java:1190)
        at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2272)
        at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2190)
        at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2141)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:405)
        at com.sun.tools.javac.main.Main.compile(Main.java:564)
        at com.sun.tools.javac.Main.compile(Main.java:41)
        at com.sun.tools.javac.Main.main(Main.java:32)


Comments
PUBLIC COMMENTS ...
10-06-2004

EVALUATION This is almost certainly a dup of 4909550. I will investigate as soon as I can. ###@###.### 2003-10-10 ###@###.### reports that this is no longer reproducible with recent tiger builds. If it is still a problem, please update this bug report. Marking incomplete pending further information. ###@###.### 2004-01-16
16-01-2004