Sun Completes Java Core Tech Open-Sourcing 141
MsManhattan writes "A year after announcing its plans, Sun Microsystems has made almost all of the core technology in Java available as open-source software under the GNU general public license version 2 (GPLv2). However, some of the code remains 'encumbered'; that is, Sun doesn't have sufficient rights to release it under GPLv2, and the company is requesting the open-source community's help in resolving these issues. Rich Sands, community marketing manager for OpenJDK community at Sun, would not say what percentage of Java's 6.5 million lines of code are encumbered, but explained that it is largely Java 2D graphics technology, such as font and graphics rasterizing."
Not much of a surprise. (Score:5, Informative)
In case anyone is wondering, this isn't much of a surprise to the Java community. When Sun was creating the latest and greatest Java libraries, they designed the APIs themselves to be generic. However, Sun generally licensed the underlying libraries for their reference implementation rather than developing them in-house. In the case of the Java2D APIs, they used code from Kodak to do all the fancy 2D rasterizations and transformations. This is why many Java coders thought that Sun's reference implementation would never be Open Sourced. (Happy to be wrong, BTW.)
That code by itself could probably be replaced with a modern 2D rasterizer (similar to the types found in SVG and Canvas implementations), but it would need to be heavily overhauled to backport the VolatileImage support added in Java 1.4. (Basically, the JVM is able to manage the video card memory to store images for faster rendering and backbuffering.) I'm thinking that something OpenGL-based would be the best bet.
However, that's not the only major library used. JavaSound also uses Dolby Headspace to render sound. It barely uses a fraction of the library's capabilities, but it would still need to be replaced. I don't know what was used for cryptography, but that would be replacable with a library like Bouncy Castle [bouncycastle.org].
All in all, the final code shouldn't be too hard to replace as long as Open Source equivalents can be found. However, these areas *do* require significant expertise, so don't expect that joe random can jump in the code and make it happen.
Re:Serious question: Java, Apache 2, and GPLv2 (Score:2, Informative)
Re:Serious question: Java, Apache 2, and GPLv2 (Score:5, Informative)
In addition:
The second part is tenuous given the wording, but could be made to apply given Java's attempt to be the execution platform. However, the former part carries far more weight. Programming to the Java specification does not imply that you are basing it on a GPLed version.
Re:Serious question: Java, Apache 2, and GPLv2 (Score:3, Informative)
Re:Serious question: Java, Apache 2, and GPLv2 (Score:5, Informative)
Sun isn't using GPLv2, they are using GPLv2 + the Classpath exception. This is a modification to the GPLv2 pioneered by the GNU Classpath project. It basically makes Java's code GPL, but doesn't require code running on the JVM, or using the J2SE libraries, to be GPLv2 complaint.
Links here:
http://www.sun.com/software/opensource/java/faq.j
http://www.javalobby.org/java/forums/t84256.html [javalobby.org]
http://en.wikipedia.org/wiki/GPL_linking_exceptio
Re:Not much of a surprise. (Score:5, Informative)
https://openjdk.dev.java.net/ [java.net]
I imagine that the Graphics2D class as well as the VolatileImage class need to be implemented. The BufferedImage implementation may need to be modified to obtain the "Automatic Image" behavior seen in the Sun JVM. Depending on how much Sun has withheld, you may need to implement the GraphicsEnvironment code as well. I recommend asking on the mailing list for specifics.
The "tainting" problem was always an OSS community invention based on Sun's license wording. As long as the code you've seen is in the OpenJDK, it's quite impossible for you to be "tainted" as Sun has given it to you under the terms of the GPL. Of course, you should always consult a lawyer for the latest in paranoid-protective behavior, but I sincerely doubt that Sun would try and sue you over something they just gave you.
You can do whatever the GPL license allows you to do. However, I imagine that OpenJDK won't accept anything more than implementation enhancements. New APIs need to go through the JCP for standardization before they can be accepted into a mainline JDK distribution. Again, ask on the mailing list for more details.
Re:Not much of a surprise. (Score:5, Informative)
Re:I'm getting tired of this (Score:3, Informative)
http://openjdk.java.net/ [java.net]
You'll note that those downloads include all the core libraries that Sun promised to release. Why don't they redirect users looking at http://openjdk.dev.java.net/ [java.net] to that page? I have no idea, but there you go.
Re:it's just HotSpot and javac (Score:4, Informative)
The http://openjdk.dev.java.net [java.net] site is defunct.
The important bits are all there, sans part of the Java2D and JavaSound implementation libs.
Re:Philosophy of exception: usage IS NOT derivatio (Score:3, Informative)
Re:One word! (Score:3, Informative)
Re:Better Firefox integration? (Score:2, Informative)
Re:Gnu classpath ? (Score:3, Informative)
Re:Serious question: Java, Apache 2, and GPLv2 (Score:1, Informative)
How can you create a derivative work of a piece of GPLed source if you've never seen that source?
The same with the binary.
If I develop a J2SE application now, on Sun's current non GPL Java, and then later run it with a GPLd version, I have no more created a derivative work of the GPLed version than my music collection sitting on the shelf constitutes a derivative work of all the CDs in it.
use is not derivation, and is not copyright infringement, so no license is required, so the GPL does not apply, no matter what the FAQ says.
The GPL is a distribution license, not an EUL.
Re:Not much of a surprise. (Score:3, Informative)
There are some real compatibility issues in doing this (I remember Gilad Bracha covering this at a previous JavaOne), but it sounds like they are at least willing to take a look at it again.
Re:Serious question: Java, Apache 2, and GPLv2 (Score:3, Informative)
Furthermore, the GPL covers distribution, not use.