-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
generic
-
generic
Name: vtR10009 Date: 07/24/2001
The bug is found in jdk1.4.0beta-b65 and disappears in the last JDK builds
(checked builds b69, b72). This bug is created specially for exclusion tests
in JCK Merlin-beta, which is based on jdk1.4.0beta-b65.
I suggest to close this bug as "fixed".
Value returned by method getSize() for MediaSize.ISO.B4
does not correspond to standart IPP value.
Acording to the IPP(RFC2911) spec:
"'iso-b4': Specifies the ISO B4 size: 250 mm by 353 mm as defined in ISO 216"
Metod getSize() for this field returns invalid value in the API
implementation(build 1.4.0-beta-b65).
This bug causes failure of JCK-merlin-beta test:
api/javax_print/attribute/standard/MediaSize/ISO/index.html#Fields
However last API implementation (build 1.4.0-beta-b72) passes these tests
and bug was filled only for test exclusion from JCK-merlin-beta.
To reproduce the bug run the following test with JDK 1.4.0-beta-b65 build:
------------------------------- test.java --------------------------------
import javax.print.attribute.standard.MediaSize;
public class test {
public static void main(String args[]) {
float[] size = MediaSize.ISO.B4.getSize(MediaSize.MM);
if (size[0] != 250.0f || size[1] != 353.0f){
System.out.println("MediaSize.B4.getSizes(MM) size doesn't "
+ "correspond to ISO.B4: " + size[0] + " " + size[1]);
return ;
}
System.out.println("OKAY");
}
}
---------------------------Logs--------------------------------------
> $jdk_b65/bin/javac test.java
> $jdk_b65/bin/java test
MediaSize.B4.getSizes(MM) size doesn't correspond to ISO.B4: 230.0 353.0
> $jdk_b65/bin/java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
======================================================================
- duplicates
-
JDK-4447015 toString returns non-IPP compliant strings for MediaName and MediaSizeName
- Resolved