Please do not use com.sun.image.codec.jpeg.JPEGCodec

I have noticed that from version 7.6.x onwards that the cells library for java is using this class. Please remove dependencies on the sun packages. This is preventing me from upgrading to the later versions of cells.




Hi Agness,

Thank you for using Aspose products.

Please elaborate the problem that you are facing due to the said dependency. Once we have complete details of your scenario, we may consider adding your request to our database for further analysis and rectification.

Looking forward to your kind response.

You are not recommended to use the sun packages as they are not supported apis. This will be problematic if they decide to remove these classes at some point. For more details see:


FAQ - Sun Packages

There are ways to code without the dependencies on sun packages, which I hope your developers are aware of. I couldn’t find your issue tracking system which is why I have posted here. Please add this to your system.

Cheers,
Agnes

To be more specific we use your Aspose libraries in an OSGi context, and com.sun.* classes are not available there. Also, this class is removed in java 7

http://blog.idrsolutions.com/2012/05/replacing-the-deprecated-java-jpeg-classes-for-java-7/

Hi Agnes,

Thanks for your posting and using Aspose.Cells for Java.

We have logged your request to remove dependencies on sun packages in our database. We will investigate it and implement it. Once, it is implemented or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSJAVA-40719.

Hi,

We have evaluated your requirements in details. We know we can use ImageIO to read/write JPEG images instead of com.sun.image... and that is just what we did with JPEG image data in the versions prior to 7.6. However, for some users' requirements regarding the quality of the output jpeg images, we have to use some advanced properties for the jpeg images, such as, PEGEncodeParam.XDensity/YDensity, ...etc. For those properties, we cannot find the corresponding settings that can be used by ImageIO APIs. Anyways, we will still try to make the invocation of com.sun.image to be used as an optional step, for those environments that APIs of com.sun.image... are unavailable, we will create JPEG image with default quality.

Thank you.

Hi,

Thanks for using Aspose.Cells.

We have fixed this issue.

Please download and try the latest fix: Aspose.Cells
for Java v7.7.1.3
.

Thank you! Will try the upgrade now…


The issues you have found earlier (filed as CELLSJAVA-40719) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.