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

javac crashes on some assignment within a switch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.4
    • tools
    • sparc
    • solaris_2.5.1



      Name: joT67522 Date: 10/30/97


      class Bug {
      public final int EQUAL = 0;
      Object pan;
      Bug (int type) {
      switch (type) {
      case EQUAL: {
      Object ob = new Object();
      pan = ob; // offending code
      break;
      }
      }
      }
      }

      javac Bug.java gives:
      sun.tools.java.CompilerError: addReference Bug this
              at sun.tools.java.ClassDefinition.addReference(ClassDefinition.java)
              at sun.tools.java.ClassDefinition.getReference(ClassDefinition.java)
      ....etc....
      (Review ID: 19497)
      ======================================================================

            tturnidgsunw Todd Turnidge (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: