javac, empty UTF8 entry generated for inner class

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: