Hi all,

I was thinking about the work Brian was doing with javap and thought it
might be cleaner to use our own utility to generate that info.  I wrote
gnu.tools.ClassTool for that purpose. It seems useful to me, but I'll
throw it out to the masses. I don't have cvs privileges (Paul, sorry for
the delay, but the paperwork is finally coming) so it's up on my local
box:
  http://www.cacas.org/java/gnu/tools/

Benefits over javap, IMHO:
- it's cleanroom
- it uses reflection, not decompilation
- more options

I threw in a "--compatibility" option that will suppress the "native"
and "synchronized" keywords which ought to be useful for classpath.
Also, "--stubs" will output begin and end braces for method bodies,
which is vaguely useful for starting on new classes.

It requires Aaron's gnu.getopt package.  Japhar doesn't like it (at
least not with a virgin 0.06 install), so use JDK's java to run (someone
who has Kaffe installed can try that).

Feel free to tweak it and/or let me know if it's useless..

Wes


Reply via email to