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

MediaSizeName.ISO_DESIGNATED_LONG does not conform to IPP

XMLWordPrintable

    • 2d
    • beta3
    • generic
    • generic



      Name: vtR10009 Date: 08/10/2001


      Value returned by method toString() for predefined
      MediaSizeName.ISO_DESIGNATED_LONG does not conform to
      standart IPP values.
      Acording to the IPP(RFC2911) :
         "The following standard values are defined for American Standard (i.e.
         ANSI) engineering media sizes:
      ...
        'iso-designated-long': Specifies the ISO Designated Long size: 110 mm
          by 220 mm as defined in ISO 269".

      Metod toString() for this field returns invalid value in the API
      implementation(build 1.4.0-beta-b74).
      This bug causes failure of JCK-merlin-beta test:
      api/javax_print/attribute/standard/MediaSizeName/index.html#Fields

      ------------------------------- test.java --------------------------------
      import javax.print.attribute.standard.MediaSizeName;

      public class test{
          public static void main(String args[])
          {
              if
      (!MediaSizeName.ISO_DESIGNATED_LONG.toString().equals("iso-designated-long")){
                  System.out.println("Failed!");
                  System.out.print("MediaSizeName.ISO_DESIGNATED_LONG value: ");
                  System.out.println(MediaSizeName.ISO_DESIGNATED_LONG.toString());
                  return;
              }
              System.out.println("OKAY");
          }
      }
      ---------------------------Logs--------------------------------------
      $ java -version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b74)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b74, mixed mode)
      $ java test
      Failed!
      MediaSizeName.ISO_DESIGNATED_LONG value: iso-designated
      ----------------------------------------------------------------------
      ======================================================================

            jgodinez Jennifer Godinez (Inactive)
            vitcsunw Vitc Vitc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: