Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6292765

java.lang.NullPointerException at Check.checkCompatibleConcretes

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      linux, windows_xp, windows_vista
    • Verification:
      Verified

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.5.0_04"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
        Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Windows XP

        A DESCRIPTION OF THE PROBLEM :
        The following simple code causes a
        java.lang.NullPointerException at Check.checkCompatibleConcretes:

        class A<T> {}

        class B<S> extends A< C<Object> > {}

        class C<S> extends B<S> {}

        // Note: The bug may be related to the bug with internal review ID: 478380


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Just try to compile the following code:

        class A<T> {}

        class B<S> extends A< C<Object> > {}

        class C<S> extends B<S> {}


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Successful compilation
        ACTUAL -
        java.lang.NullPointerException at Check.checkCompatibleConcretes

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        An exception has occurred in the compiler (1.5.0_04). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) 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.comp.Check.checkCompatibleConcretes(Check.java:1141)
                at com.sun.tools.javac.comp.Check.checkCompatibleSupertypes(Check.java:1495)
                at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2451)
                at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2406)
                at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2355)
                at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:444)
                at com.sun.tools.javac.main.Main.compile(Main.java:592)
                at com.sun.tools.javac.main.Main.compile(Main.java:544)
                at com.sun.tools.javac.Main.compile(Main.java:67)
                at com.sun.tools.javac.Main.main(Main.java:52)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        class A<T> {}

        class B<S> extends A< C<Object> > {}

        class C<S> extends B<S> {}

        ---------- END SOURCE ----------
        ###@###.### 2005-06-30 09:26:06 GMT

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ahe Peter Ahe
                  Reporter:
                  jssunw Jitender S (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: