Donate Share

TripleA

Tracker: Bugs

5 Compilation error under OpenJDK - ID: 2015235
Last Update: Comment added ( sgbridges )

When compiling with OpenJDK 1.6.0.0-0.15.b09 on Fedora 9, I get the
following errors:

compile:
[javac] Compiling 14 source files to
/home/makerpm/triplea_1_0_0_3/classes
[javac]
/home/makerpm/triplea_1_0_0_3/src/util/image/ImageShrinker.java:64:
warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API
and may be removed in a future release
[javac] JPEGImageEncoder encoder =
JPEGCodec.createJPEGEncoder(out);
[javac] ^
[javac]
/home/makerpm/triplea_1_0_0_3/src/util/image/ImageShrinker.java:64:
warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may
be removed in a future release
[javac] JPEGImageEncoder encoder =
JPEGCodec.createJPEGEncoder(out);
[javac] ^
[javac]
/home/makerpm/triplea_1_0_0_3/src/util/image/ImageShrinker.java:65:
warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API
and may be removed in a future release
[javac] JPEGEncodeParam param = encoder.
[javac] ^
[javac]
/home/makerpm/triplea_1_0_0_3/src/util/image/ImageShrinker.java:69: cannot
find symbol
[javac] symbol : method
setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
[javac] location: class com.sun.image.codec.jpeg.JPEGImageEncoder
[javac] encoder.setJPEGEncodeParam(param);
[javac] ^
[javac] 1 error
[javac] 3 warnings

The reason is that the com.sun.image.codec.jpeg features are not opensource
(due to JPEG licensing issues)

I am trying to package TripleA into Fedora (hopefully in time for Fedora
10) and I need to be able to build it with the built-in Java compiler
(OpenJDK).


Stephen Gallagher ( karrde712 ) - 2008-07-10 16:55

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2008-07-11 01:40
Sender: sgbridgesProject AdminAccepting Donations


Looks good, checked in with revision 2062 and 2063


Date: 2008-07-10 20:41
Sender: karrde712


Uploading patch for ImageShrinker.

com.sun.image.codec.jpeg is a Sun-only extension. The
implementation-independent libraries for JPEG manipulation in Java is to
use the javax.imageio.* and javax.imageio.plugins.jpeg.* tools. The
attached patch converts ImageShrinker.java to use the standard JPEG
libraries. This enables compilation on OpenJDK.

I have compiled and tested this code to verify that it appropriately
shrinks the provided image as the original implementation did.
File Added: ImageShrinker.diff


Log in to comment.

Attached File ( 1 )

Filename Description Download
ImageShrinker.diff Fix for OpenJDK compilation error Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-07-11 01:40 sgbridges
resolution_id None 2008-07-11 01:40 sgbridges
close_date - 2008-07-11 01:40 sgbridges
File Added 284277: ImageShrinker.diff 2008-07-10 20:41 karrde712