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

javac 1.3 falls on exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • tools
    • x86
    • windows_nt



      Name: sl110371 Date: 07/31/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Try to compile next (wrong) code :

      public class Hello extends long[]
      {
      public static void main(String args[]) throws Exception
      {
      System.out.println("test");
      }
      }


      and you get javac output :
      ===============
      An exception has occurred in the compiler (1.3.0). Please file a bug at the Java
       Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include your
       program and the following diagnostic in your report. Thank you.
      java.lang.NullPointerException
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:746)
              at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
              at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
              at com.sun.tools.javac.v8.Main.compile(Main.java:247)
              at com.sun.tools.javac.Main.main(Main.java:16)
      (Review ID: 107803)
      ======================================================================

            wmaddoxsunw William Maddox (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: