-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2
-
b11
-
sparc
-
solaris_8
-
Verified
With the recent Mantis JDK1.4.2-b06 build, some rendering tests from SQE MediaServer Tool are failing due to images not rendering in the requested size (within a java.awt.Canvas).
The tool places a java.awt.Canvas within a frame, calls setPreferredSize(), and then renders the test case. The bug is that the requested sizes are off by a few pixels. For example a 800 x 600 canvas is rendered as follows:
Solaris 9: 800 x 598
Solaris 8: 802 x 605
- This bug has been seen on Solaris, IA, and Linux (Win32 platform is not affected)
- The bug was introduced with JDK1.4.2-b06 (no problems with JDK1.4.2-b05). The test also works fine with JDK1.4.1-fcs and JDK1.4-fcs.
Steps to reproduce:
------------------
1) Compile and run the attached test case captureOnScreen.java on Solaris platform with JDK1.4.2-b06
java captureOnScreen
2) The test case is set to render a canvas 800x600 and will display the actual rendered size.
3) The results will be something different than 800X600.
The tool places a java.awt.Canvas within a frame, calls setPreferredSize(), and then renders the test case. The bug is that the requested sizes are off by a few pixels. For example a 800 x 600 canvas is rendered as follows:
Solaris 9: 800 x 598
Solaris 8: 802 x 605
- This bug has been seen on Solaris, IA, and Linux (Win32 platform is not affected)
- The bug was introduced with JDK1.4.2-b06 (no problems with JDK1.4.2-b05). The test also works fine with JDK1.4.1-fcs and JDK1.4-fcs.
Steps to reproduce:
------------------
1) Compile and run the attached test case captureOnScreen.java on Solaris platform with JDK1.4.2-b06
java captureOnScreen
2) The test case is set to render a canvas 800x600 and will display the actual rendered size.
3) The results will be something different than 800X600.