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

j.i.ObjectInputFilter.Status enum values order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs

      Description

      Order of enum values according to the spec:
      ALLOWED, REJECTED, UNDECIDED

      Order of enum values that returned by values():
      UNDECIDED, ALLOWED, REJECTED

      Seems this is a specification problem for all enums, because their values are in alphabetic order in the API spec.

      JCK checks the order of enums according to the following assertion of method values():
      "Returns an array containing the constants of this enum type, in the order they are declared."

      The declared order should be reflected in API spec.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              evotchen Elena Votchennikova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: