JDK-6175450 : 12 javax/imageio tests are failing with package based installation of JDK on solaris10 sparc
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 1.4.2_07
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2004-10-07
  • Updated: 2011-01-19
  • Resolved: 2005-01-19
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
1.4.2_07Resolved
Related Reports
Duplicate :  
Description
12 testcases from Regression workspace are failing on Solaris10 sparc with 1.4.2_07-b01 as well as with 1.4.2_06-b02 for package based installation of JDK where as they are passing with .sh based installation of JDK.

How to Reproduce:
The following 12 tests are failing with Rutime Exception, Writer for png has wrong class!

javax/imageio/BitDepth.java
javax/imageio/GetImageWriter.java
javax/imageio/plugins/jpeg/BadMarkerTest.java
javax/imageio/plugins/jpeg/CrashAfterDispose.java
javax/imageio/plugins/jpeg/NoAPP0Test.java
javax/imageio/plugins/jpeg/UshortGrayTest.java
javax/imageio/plugins/png/PNGTransparency.java
javax/imageio/ImageWriteParamTest.java
javax/imageio/event/WriteProgressListenerTest.java
javax/imageio/metadata/GetObjectMinValue.java
javax/imageio/IRPTest.java
javax/imageio/ImageReaderGetDestination.java

These testcases are from the following location, failing with package based JDK only.

/net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/javax/imageio

where as they are passing with JDK installed using sh file. These are also passed on solaris9-sparc.

To reproduce:

Copy the attached file IRPTest.java and images.tar, untar images.tar and compile and run it with two different JDKs. 

Here is the OUTPUT:
1) Package Based installation :

bigapp-s14$ /usr/j2se/bin/java -version
java version "1.4.2_07-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_07-ea-b01, mixed mode)

bigapp-s14$ /usr/j2se/bin/java IRPTest                                        
Testing ./images/basi0g01.png
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
        at java.awt.image.MultiPixelPackedSampleModel.getSample(MultiPixelPackedSampleModel.java:339)
        at java.awt.image.SampleModel.getPixels(SampleModel.java:743)
        at sun.awt.image.ImagingLib.transformRaster(Native Method)
        at sun.awt.image.ImagingLib.filter(ImagingLib.java:140)
        at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:335)
        at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.read(CLibImageReader.java:453)
        at IRPTest.test(IRPTest.java:300)
        at IRPTest.test(IRPTest.java:362)
        at IRPTest.main(IRPTest.java:402)

2) .sh file based installation 

bigapp-s14$ /export/updates/jdks/j2sdk1.4.2_07/bin/java -version
java version "1.4.2_07-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_07-ea-b01, mixed mode)

bigapp-s14$ /export/updates/jdks/j2sdk1.4.2_07/bin/java IRPTest
Testing ./images/basi0g01.png
Testing ./images/bgbn4a08.png
Testing ./images/gosling.jpg
Testing ./images/duke.gif

bigapp-s14$ cat /etc/release
                             Solaris 10 s10_68 SPARC
           Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 21 September 2004
###@###.### 10/7/04 13:06 GMT

Comments
EVALUATION These testcase passed with 1.4.2_07 b01 with pkg installation (except 2 and those 2 are also failed same way with 1.4.2 FCS) on Solaris 10. Might be a machine problem. ###@###.### 10/8/04 01:18 GMT I believe it was diagnosed that this was happening because the JAI plug-ins were also installed. I'm not sure why the jpeg tests would fail because of the wrong "png" class. May be that case said "jpeg" Assuming the above evaluation is acccurate this isn't a product bug, nor is it a regression. I'm sure these test cases would fail under 1.4.2 given the same conditions. It sounds as if these tests explicitly require the JDK versions of the plug-ins. Its arguable that the tests need to be run on a clean JDK install, without additional plug-ins installed. Its also arguable they should be robust against this and try to find the right class rather than assuming the first one returned is "it". ###@###.### 2004-11-29 18:33:31 GMT Following the testing carried out in bug# 6217360, the tests passed with JDK1.4.2_08 and JDK5.0_02. ###@###.### 2005-1-19 01:34:48 GMT
08-10-2004