IBM J9 Java 6 bundled com.sun.imageio.plugins.jpeg.JPEGImageReader

488 Views Asked by At

Simple question:

Is the IBM J9 Java 6 bundled class com.sun.imageio.plugins.jpeg.JPEGImageReader exactly the same as the class with the same package/class name in a standard Sun/Oracle JRE?

(And if it is, is it using the same native/JNI code?)


Background for the question: Bug report, stating that a normal JPEG file can't be read, due "IIOException: Quantization table 0x01 was not defined" (which is clearly a bogus error message, given the completely standard sample image).

1

There are 1 best solutions below

1
On

An IBM fix was recently released in this area:

IV83756 - CRASH IN COM.SUN.IMAGEIO.PLUGINS.JPEG.JPEGIMAGEREADER.READIMAGE()

http://www-01.ibm.com/support/docview.wss?uid=swg1IV83756

This is fixed in Java 6 SR16 FP30 (6.0.16.30), which was released in July 2016.

The 'crash' described in the fix title is an abort triggered by failing a JNI check that is disabled by default. When the JNI check is disabled, then the program would carry on and it's possible that the underlying problem detected by the check might cause the unreliable image read that is reported here.