[OpenJDK 2D-Dev] Missing com/sun/image/codec/jpeg/ classes in openJDK7
Phil Race
philip.race at oracle.com
Thu Jun 27 16:57:21 UTC 2013
On 6/26/2013 5:39 PM, John Wolfe wrote:
> Thanks for the response and the reminder that they were dropped from
> the spec.
They were never in the spec. They were always documented separately
under a heading
something like "Other classes bundled with the JDK".
>
> I did the ports of the Sun J2SE 1.4.1 and 1.5.0 for UnixWare and
> OpenServer in the past. The jfc/Java2D demo was always a good
> exercise for graphics and thread control. While the Java2D demo is
> not in openJDK6, I grabbed a Java2Demo.jar file from the Oracle JDK6
> and it ran on the OpenJDK6
Back in Summer 2006 the JDK 7 version of the demo was revised to use
Image I/O.
>
> openjdk version "1.6.0_32"
> OpenJDK Runtime Environment (build 1.6.0_32-b27)
> OpenJDK Client VM (build 20.0-b12, mixed mode)
>
> I have checked the OpenJDK6 source and the codec classes are there.
I don't know what exactly you checked but they are *not* in the openjdk
6 source.
Here's the authoritative source repo :
http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/d3912e74ec28/src/share/classes/com/sun/
.. .no image subdir listed there. Maybe icedtea has its own
implementation of these.
-phil.
> The missing class(es) showed up when attempting to run the
> Java2Demo.jar with the OpenJDK 7u6.
>
> -- John
>
>
> On 6/26/2013 7:09 PM, Phil Race wrote:
>> I do not know in which JDK 6 it was you saw these files but I doubt
>> it was an OpenJDK.
>> These files are closed source, so could not be in OpenJDK and in any
>> case
>> are not part of the Java SE spec.
>> If you need these classes you will need to use an Oracle JDK
>> download, however
>> their use has been discouraged since Image I/O was added in JDK 1.4
>> over 10 years ago.
>>
>> -phil.
>>
>> On 6/26/2013 3:05 PM, John Wolfe wrote:
>>> I was evaluating the OpenJDK 7 on a FreeBSD 9.1 system and was
>>> surprised to discover that all the JPEG encoded/decode classes in:
>>>
>>> com/sun/image/codec/jpeg
>>> sun/awt/image/codec
>>>
>>> are absent from the rt.jar. These missing 12 classes are part of
>>> the OpenJDK 6 source release.
>>>
>>> What is the reasoning for their absence? This seems to break
>>> forward compatibility?
>>>
>>> -- John Wolfe Xinuos, Inc.
>>>
>>>
>>
>
>
More information about the 2d-dev
mailing list