JDK-8148334 : The regression case: java/awt/print/PrinterJob/PrintTextTest.java failed as the printed pages do not match the shown pages
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7u95,8,9
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • Submitted: 2016-01-26
  • Updated: 2025-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Testsuite name: Regression 
Test name(s): java/awt/print/PrinterJob/PrintTextTest.java
Product(s) tested: JDK 8u76 b03(32bit)
OS/architecture: win8.1 x86

Reproducible: Always 
Reproducible on machine: Evergreen-machine 
[If Sometimes] Also reproducible on machine: 

Is it a Regression:  No
[If Regression] Regression introduced in release/build: 
Test result on the last GAed release for this train: Failed as the same issue(JDK 8u72 b15 on the same OS)
[if Fail] Test result on FCS: Failed as the same issue(JDK 1.8.0 b132 on the same OS)

Is it a platform specific issue: No (The same build on Mac10.10 x64: Failed refer to mac_Page1.png and mac_Page8.png
                                                    The same build on Oel6.4 x86: Failed refer to Page8_portrait.jpg and Page8_landscape.jpg, only Page8 failed
                                                    The same build on Solaris10 x64: Failed refer to Page8_portrait.jpg and Page8_landscape.jpg , only Page8 failed
                                                    The same build on Solaris11.3 sparc: Failed refer to Page8_portrait.jpg and Page8_landscape.jpg, Page1-11 all failed)
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: 
[If new configuration testing] Issue specific to execution mode or OS/browser version:

Case instruction:

This tests that printed text renders similarly to on-screen, 
under a variety of APIs and graphics and font transforms
Print to your preferred printer. Collect the output.
Refer to the onscreen buttons to cycle through the on-screen content
For each page, confirm that the printed content corresponds to the on-screen rendering for that *same* page.
Some cases may look odd but its intentional. Verify it looks the same on screen and on the printer.
Note that text does not scale linearly from screen to printer so some differences are normal and not a bug.
The easiest way to spot real problems is to check that any underlines are the same length as the underlined text
and that any rotations are the same in each case. 
Note that each on-screen page is printed in both portrait and landscape mode. 
So for example, Page 1/Portrait, and Page 1/Landscape when rotated to view properly, should both match Page 1 on screen.;

Actual behavior: 
1)Page1 and Page8 Print results do not match the shown Page,refer to Page1_portrait.JPG,Page1_landscape.JPG,Page8_portrait.JPG and Page8_landscape.JPG.
2)Page2-5 and Page 9-11 have the same issus as page1.
3)Page6,page7,page12 and page13 print normally.
Comments
Test build: JDK8u201 b03(64bit) Test platform: Mac10.13 x64 Jtreg tool: jtreg4.2 b13 The following case failed as the same issue. RULE "java/awt/print/PrinterJob/PrintTextTest.java" any any
14-11-2018

not a regression for 9
19-10-2016

The first one is the issue described in https://bugs.openjdk.java.net/browse/JDK-8145901. This is now fixed.
30-08-2016

There are two issues here both are regressions. One is introduced in 9: by JDK-8143177. Another one much earlier, in early 1.7 releases. The first one is shown on the attached printBug.png image. The second one can be fixed by replacing line 756 of WPathGraphics with AffineTransform.getScaleInstance(advanceScaleX, -advanceScaleY);
16-02-2016

The case has the same issue on win8.1 x64 with JDK 8u75 b04(64bit). RULE "java/awt/print/PrinterJob/PrintTextTest.java" any any
26-01-2016

Error log file : http://aurora.ru.oracle.com/slot-gw/1286558.ManualSubmit-1/workDir/java/awt/print/PrinterJob/PrintTextTest.jtr RULE "java/awt/print/PrinterJob/PrintTextTest.java" any any
26-01-2016