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

Abstract methods in enum classes should not be listed as abstract

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 6
    • tools

      One way to implement enum-constant specific behavior is to have the enum class declare an abstract method and then to have each specialized enum constant override the class (specialized enum constants are implemented as anonymous subclasses of the enum class). Although the method is declared abstract in the enum, it is effectively not abstract since javac ensures that each enum constant provides a concrete implementation of the method. Therefore, in this situation the generated javadoc should not list the "abstract" modifier on the method.

      ###@###.### 2005-06-17 23:29:29 GMT

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: