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

No spec for values() and valueOf() method of a Enum class

XMLWordPrintable

    • b46
    • generic
    • generic

      This bug is found by NSK team that the spec for values and valueOf methods
      added by javadoc to a Enum class is missing.

      Below shows the enum classes added in 1.5 in java.lang.management package
      that do not have the spec for values and valueOf methods.

      These methods are not defined in the ThreadState.java and MemoryType.java
      files. Whichever tool adds these 2 methods in an enum class should also
      define the spec.

      ------------------------------------------

      Name: agR10195 Date: 02/27/2004


      Four methods

          ThreadState.valueOf()
          ThreadState.values()
          MemoryType.valueOf()
          MemoryType.values()
          
      do not have specification in Tiger-b40.

      However, the methods are not obvious. Their behaviour must be specified.

      ======================================================================


            jhosunw Jamie Ho (Inactive)
            gazsunw Gaz Gaz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: