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

specify IPP compatibility of enum attribute values

XMLWordPrintable

    • 2d
    • beta
    • generic
    • generic



      Name: ooR10006 Date: 03/05/2001



      1. There is no reference in JobState specification to IPP 'keyword'(RFC2911)
      associated with each enum value of JobState (i.e."job-state") attribute.
      Probably, the value returned by JobState element's toString() should
      correspond to the IPP 'keyword' specified for each attribute enum value:
      for UNKNOWN its "unknown", for PENDING its "pending", etc.
      If so, this should be specified.

      2. It is unclear in the specification of javax.print.attribute.EnumSyntax class
      whether the EnumSyntax[] array returned by getEnumValueTable() should
      correspond to declared public enum members one-to-one or may contain some
      additional elements.

      The spec for getEnumValueTable() says:
      "...If an integer within the above range is not used by any enumeration value,
      leave the corresponding table element null..."
      But it's unclear whether an integer is considered to be "used" only if it
      corresponds to a declared public static enum element or not.
      The same is true for String[] array returned by getStringTable().


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

            jballsunw Jennifer Ball (Inactive)
            ovosunw Ovo Ovo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: