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

j.i.ObjectInputFilter.Status enum values order

    XMLWordPrintable

Details

    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

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

              Dates

                Created:
                Updated:
                Resolved: