|
Authored by: Anonymous on Sunday, April 22 2012 @ 11:50 AM EDT |
you say "The only thing you are licensed to do is write programs and
compile and run them on Oracle Java."
Well that’s enough to get the API into a list. You don't need to use javadoc or
use the openjdk source-code or byte-code decompilation. Just write straight
forward java programs that run on the openJDK vm. You only need a compiled
openJDK binary.
Program 1 – uses reflection to discover (testing candidate strings - like when
breaking a password) classes in the API and enumerates methods and their
signatures. Instead of just outputting the API as a list, for each discovered
class it generates a new simple class as source-code that inherits all
public/protected methods from the parent and over-rides them.
Take the auto generated classes and show them to an Oracle lawyer, ask them “do
you own this code?”. I can't see any way Oracle can own the output of a users
program running on openJDK, thankyou GPL+CE .
Program 2 – take the auto-generated source code that we've established is free
of Oracle copyright and run a simple javadoc-like tool over it and the openJDK
API is generated as a list.
What I like about doing it this way is it illustrates the difference between the
API and the actual implementation code – you can't get any implementation code
this way only the public API that the openJDK binary will give up if you ask it
nicely.[ Reply to This | Parent | # ]
|
|
|
|
|