Oskar Liljeblad wrote:
>
> I've made a programmed called DeDoc that may be of interest to
> anyone porting the Java Sun JDKs to Classpath/GCJ. DeDoc takes
> the HTML JavaDoc documentation of some API, reads it, and
> writes Java source code containing class and method signatures.
Heh... I'd planned on doing almost the exact same thing based on Japize
(ie a japi2java program, probably in perl). Japize is based on
reflection rather than parsing the javadocs, though.
I can't speak for the classpath project since I'm no longer really part
of it, but I do see one possible problem - does your program include
doc-comments from the original code? If so, they will need to be removed
for Classpath; those doc-comments are copyright of Sun and we have to
write our own. I know this because I actually approached Sun about
making available the results of a doclet that produced doc-commented
java source as output...
Sounds like an amazing feat of parsing though, if nothing else! :)
Stuart.