Excalibur Components
  1. Excalibur Components
  2. EXLBR-34

excalibur-instrument-mgr-http uses com.sun.* classes

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Instrumentation
    • Labels:
      None
    • Environment:
      Gentoo/Linux / FOSS stack

      Description

      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.

        Activity

          People

          • Assignee:
            Leif Mortenson
            Reporter:
            Petteri Räty
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development