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

javac, empty UTF8 entry generated for inner class

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: