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

Compiler should set ACC_FINAL for enum types with no constant-specific members

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The JSR-201 Public Review Draft Spec says that enum types do not have constant-specific members should be final, but the compiler doesn't set the ACC_FINAL VM flag for such types.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              jjb Josh Bloch
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: