------------------------------------------------------------------
OS : Solaris sparc 8 and Windows 98 2nd japanese
JDK: Hopper j2sdk1.4.1 b07
Test suite : regression test case
java/awt/print/PrinterJob/PrintImages/PrintImages.java
------------------------------------------------------------------
Regression test:java/awt/print/PrinterJob/PrintImages/PrintImages.java failing.
Launching this test case, the following RuntimeException is thrown on the terminal and does not work.
=============================================================================================
java.lang.RuntimeException: java.lang.ClassNotFoundException: sun/java2d/loops/SetDrawLineANY
at sun.java2d.loops.GraphicsPrimitiveProxy.instantiate(GraphicsPrimitiveProxy.java:73)
at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:254)
at sun.java2d.loops.GraphicsPrimitiveMgr.locatePrim(GraphicsPrimitiveMgr.java:211)
at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:161)
at sun.java2d.loops.DrawLine.locate(DrawLine.java:38)
at sun.java2d.SurfaceData.makeRenderLoops(SurfaceData.java:472)
at sun.awt.image.BufImgSurfaceData.getSolidLoops(BufImgSurfaceData.java:350)
at sun.awt.image.BufImgSurfaceData.initSolidLoops(BufImgSurfaceData.java:335)
at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:212)
at sun.java2d.loops.BlitBg$General.BlitBg(BlitBg.java:141)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:634)
at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:359)
at sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:337)
at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:299)
at sun.java2d.pipe.DrawImage.scaleBufferedImage(DrawImage.java:426)
at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:504)
at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:774)
at sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:171)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2854)
at sun.print.PSPathGraphics.drawImageToPS(PSPathGraphics.java:998)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:495)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:406)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:345)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:288)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:197)
at PrintImages.translateImages(PrintImages.java:213)
at PrintImages.drawGraphics(PrintImages.java:195)
at PrintImages.print(PrintImages.java:179)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1506)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1078)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:979)
at PrintImages.init(PrintImages.java:105)
at PrintImages.main(PrintImages.java:314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:536)
===================================================================================================
[Steps to reproduce]
1. Extract the attached the tar file(Print.tar) and compile the attached test case(PrintImages.java)
% javac PrintImages.java
2. launch the test case.
% java PrintImages
or
% jtreg -jdk:<jdk directry> PrintImages.java
3. Comes up the Print dialog.
4. Click "print" button.
Then, the error messages are displayed on the terminal and nothing is printed out from a printer.
The test passes if the two pages are printed out from a printer with no error.
I compared the rt.jar both in jdk1.4 b92(fcs) and in jdk1.4.1 b07.
I found that sun/java2d/loops/SetDrawLineANY class is present in jdk1.4 but not present in jdk1.4.1.
This problem was already filed as #4654167.
I think that the problem seems to be the same cause as #4654167.
* This problem does not occur on Merlin(fcs).
Therefore, this is regression.
OS : Solaris sparc 8 and Windows 98 2nd japanese
JDK: Hopper j2sdk1.4.1 b07
Test suite : regression test case
java/awt/print/PrinterJob/PrintImages/PrintImages.java
------------------------------------------------------------------
Regression test:java/awt/print/PrinterJob/PrintImages/PrintImages.java failing.
Launching this test case, the following RuntimeException is thrown on the terminal and does not work.
=============================================================================================
java.lang.RuntimeException: java.lang.ClassNotFoundException: sun/java2d/loops/SetDrawLineANY
at sun.java2d.loops.GraphicsPrimitiveProxy.instantiate(GraphicsPrimitiveProxy.java:73)
at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:254)
at sun.java2d.loops.GraphicsPrimitiveMgr.locatePrim(GraphicsPrimitiveMgr.java:211)
at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:161)
at sun.java2d.loops.DrawLine.locate(DrawLine.java:38)
at sun.java2d.SurfaceData.makeRenderLoops(SurfaceData.java:472)
at sun.awt.image.BufImgSurfaceData.getSolidLoops(BufImgSurfaceData.java:350)
at sun.awt.image.BufImgSurfaceData.initSolidLoops(BufImgSurfaceData.java:335)
at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:212)
at sun.java2d.loops.BlitBg$General.BlitBg(BlitBg.java:141)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:634)
at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:359)
at sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:337)
at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:299)
at sun.java2d.pipe.DrawImage.scaleBufferedImage(DrawImage.java:426)
at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:504)
at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:774)
at sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:171)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2854)
at sun.print.PSPathGraphics.drawImageToPS(PSPathGraphics.java:998)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:495)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:406)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:345)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:288)
at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:197)
at PrintImages.translateImages(PrintImages.java:213)
at PrintImages.drawGraphics(PrintImages.java:195)
at PrintImages.print(PrintImages.java:179)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1506)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1078)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:979)
at PrintImages.init(PrintImages.java:105)
at PrintImages.main(PrintImages.java:314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:536)
===================================================================================================
[Steps to reproduce]
1. Extract the attached the tar file(Print.tar) and compile the attached test case(PrintImages.java)
% javac PrintImages.java
2. launch the test case.
% java PrintImages
or
% jtreg -jdk:<jdk directry> PrintImages.java
3. Comes up the Print dialog.
4. Click "print" button.
Then, the error messages are displayed on the terminal and nothing is printed out from a printer.
The test passes if the two pages are printed out from a printer with no error.
I compared the rt.jar both in jdk1.4 b92(fcs) and in jdk1.4.1 b07.
I found that sun/java2d/loops/SetDrawLineANY class is present in jdk1.4 but not present in jdk1.4.1.
This problem was already filed as #4654167.
I think that the problem seems to be the same cause as #4654167.
* This problem does not occur on Merlin(fcs).
Therefore, this is regression.
- duplicates
-
JDK-4648973 compiler does not emit code for second class in source file
- Closed