You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by "Leif Mortenson (JIRA)" <de...@excalibur.apache.org> on 2007/02/21 03:01:05 UTC
[jira] Commented: (EXLBR-34) excalibur-instrument-mgr-http uses
com.sun.* classes
[ https://issues.apache.org/jira/browse/EXLBR-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474627 ]
Leif Mortenson commented on EXLBR-34:
-------------------------------------
I had implemented it this way originally to keep the jar simple and avoid external dependencies.
I think the only solution is to add a dependency on JAI, the imaging library. It is a Sun proprietary jar like java mail however and will not be available on ibiblio. I already use it in many of my own projects so this is not a issue for me personally, but it does add to the list of jars that a new user will have to go in search of manually. Is anyone aware of any alternatives?
Cheers,
Leif
> excalibur-instrument-mgr-http uses com.sun.* classes
> ----------------------------------------------------
>
> Key: EXLBR-34
> URL: https://issues.apache.org/jira/browse/EXLBR-34
> Project: Excalibur Components
> Issue Type: Bug
> Components: Instrumentation
> Affects Versions: 2.1
> Environment: Gentoo/Linux / FOSS stack
> Reporter: Petteri Räty
> Assigned To: Leif Mortenson
>
> FOSS implementations of Java don't use com.sun.* classes and they will also probably go away from Sun JDK in 1.7 too. This is the output with sun-jdk-1.6:
> compile:
> [mkdir] Created dir: /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/target/classes
> [javac] Compiling 34 source files to /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/target/classes
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:20: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGCodec;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:21: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGEncodeParam;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:22: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGImageEncoder;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:20: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGCodec;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:21: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGEncodeParam;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:22: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release
> [javac] import com.sun.image.codec.jpeg.JPEGImageEncoder;
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:235: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release
> [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( os );
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:235: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release
> [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( os );
> [javac] ^
> [javac] /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:236: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release
> [javac] JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam( bi );
> [javac] ^
> [javac] 9 warnings
> [copy] Copying 2 files to /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/target/classes
> [copy] Copying 2 files to /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/target/classes
> junit-present:
> [echo] ================================= WARNING ================================
> [echo] Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.
> [echo] ==========================================================================
> compile-tests:
> internal-test:
> test:
> jar:
> [jar] Building jar: /var/tmp/portage/dev-java/excalibur-instrument-2.1/work/excalibur-instrument-mgr-http-2.1/target/excalibur-instrument-mgr-http-2.1.jar
> Grepping trunk:
> betelgeuse@pena /mnt/checkouts/excalibur-trunk $ grep com.sun -r .
> ./cornerstone/sockets/impl/src/java/org/apache/avalon/cornerstone/blocks/sockets/.svn/text-base/SSLFactoryBuilder.java.svn-base: java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
> ./cornerstone/sockets/impl/src/java/org/apache/avalon/cornerstone/blocks/sockets/SSLFactoryBuilder.java: java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/FavIconHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGCodec;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/FavIconHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGEncodeParam;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/FavIconHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGImageEncoder;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/SampleChartHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGCodec;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/SampleChartHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGEncodeParam;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/.svn/text-base/SampleChartHandler.java.svn-base:import com.sun.image.codec.jpeg.JPEGImageEncoder;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:import com.sun.image.codec.jpeg.JPEGCodec;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:import com.sun.image.codec.jpeg.JPEGEncodeParam;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java:import com.sun.image.codec.jpeg.JPEGImageEncoder;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:import com.sun.image.codec.jpeg.JPEGCodec;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:import com.sun.image.codec.jpeg.JPEGEncodeParam;
> ./containerkit/instrument/mgr-http/src/java/org/apache/excalibur/instrument/manager/http/FavIconHandler.java:import com.sun.image.codec.jpeg.JPEGImageEncoder;
> Please use javax.imageio.plugins.jpeg so that your code can be used by more people.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org