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

javac, empty UTF8 entry generated for inner class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • tools
    • None
    • b87
    • Verified

      When compiling this code:

      public class OuterPlusEnum {
              enum E {
                      E1
              }

              public int m (E e) {
                      switch (e) {
                              case E1:
                                      return 0;
                      }
                      return -1;
              }
      }

      The CP for classes OuterPlusEnum$1 and OuterPlusEnum will have an empty UTF8 corresponding to the empy name for class OuterPlusEnum$1. This entry could be saved with a simple check on the class name.

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: