JDK-4909550 : 1.5 beta-b15 java compiler throws NPE
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2003-08-20
  • Updated: 2004-03-05
  • Resolved: 2003-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b32Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description

Name: apR10229			Date: 08/20/2003


Filed By      : SPB JCK team (###@###.###)
JDK           : java full version "1.5.0-beta-b15"
JCK           : 1.5
Platform[s]   : Linux
switch/Mode   : 
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] :
    api/javax_swing/plaf/metal/MetalFileChooserUI/SingleClickListener/index.html#Ctor
    api/javax_swing/plaf/metal/MetalFileChooserUI/SingleClickListener/index.html#Handler
    api/javax_swing/text/html/HTMLDocument/index.html#create_el
    api/javax_swing/text/html/HTMLDocument/index.html#protected
    api/javax_swing/text/html/StyleSheet/index.html#attr


Problem description
===================
5 JCK tests fails during the compilation - NPE thrown 
by the compiler. There's a minimized example below.

    
Minimized test:
===============
------- Test.java -------
import javax.swing.text.html.*;
import javax.swing.text.*;

class Test extends HTMLDocument {
    public AbstractDocument.AbstractElement createDefaultRoot() {
       // return super.createDefaultRoot();
    }
}
------- end-of-Test.java -------

Minimized test output:
======================
<pav@hammer(pts/5).258> javac Test.java
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:1375)
        at com.sun.tools.javac.code.Type$ClassType.isSubType(Type.java:1365)
        at com.sun.tools.javac.comp.Check.checkOverride(Check.java:911)
        at com.sun.tools.javac.comp.Check.checkOverride(Check.java:954)
        at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:386)
        at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:446)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:235)
        at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:270)
        at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2251)
        at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2140)
        at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2091)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:400)
        at com.sun.tools.javac.main.Main.compile(Main.java:520)
        at com.sun.tools.javac.Main.compile(Main.java:41)
        at com.sun.tools.javac.Main.main(Main.java:32)
<pav@hammer(pts/5).259> 

JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

Specific Machine Info:
=====================
Linux hammer 2.4.21 #1 Wed Jun 25 20:18:22 MSD 2003 i686 unknown

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b32 tiger-beta VERIFIED IN: tiger-b41
14-06-2004

PUBLIC COMMENTS ...
10-06-2004

EVALUATION Crashes are very bad. ###@###.### 2003-09-05
05-09-2003