Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.2
-
Fix Version/s: 5.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:JDK 1.7, 1.8 or Open JDK
-
ICEsoft Forum Reference:
-
Support Case References:Support Case #12663 - https://icesoft.my.salesforce.com/5007000000ZwVJy
Description
We've been using com.sun.image.codec.jpeg.JPEGCodec do do some funky JPEG image detection/loading since the 1.x days. The day has finally come where Oracle has removed the class which has always been a concern for a com.sun package.
It would be fairly easy to rewrite the JPEGCodec code with something in ImageIO or JAI. ImageIO wasn't always a possibility for us as we used to be JDK 1.3 compliant. There are also some older image libraries like http://java.sun.com/products/jimi/ and http://incubator.apache.org/sanselan/site/index.html that may offer a similar feature set.
It would be fairly easy to rewrite the JPEGCodec code with something in ImageIO or JAI. ImageIO wasn't always a possibility for us as we used to be JDK 1.3 compliant. There are also some older image libraries like http://java.sun.com/products/jimi/ and http://incubator.apache.org/sanselan/site/index.html that may offer a similar feature set.
The library appear to be in release 1.7.0_02 of the Oracle JDK on Windows, so I'm not sure where it went in the pre-release versions. An alternative still needs to be found for people using OpenJDK. Right now I'm think we should use reflection to look for the sun API and provide some fall back code for either ImageIO or Apache Sanselan.