Brian Jones wrote:
> 
> I've tried it with Japhar + Classpath and all I get out of it is the
> following...
> 
> cbj@lyta:~$ japhar net.wuffies.japi.Japize packages 
>/usr/local/japhar/share/classpath /usr/local/japhar/share/classpath/java 
>/usr/local/japhar/share/classpath/java/lang 
>/usr/local/japhar/share/classpath/java/lang/reflect
> Scanning /usr/local/japhar/share/classpath
> Done scanning /usr/local/japhar/share/classpath
> Scanning /usr/local/japhar/share/classpath/java
> Done scanning /usr/local/japhar/share/classpath/java
> Scanning /usr/local/japhar/share/classpath/java/lang
> Done scanning /usr/local/japhar/share/classpath/java/lang
> Scanning /usr/local/japhar/share/classpath/java/lang/reflect
> Done scanning /usr/local/japhar/share/classpath/java/lang/reflect

You missed out an argument or two :) Since there are a lot of public
classes that are not in the public API (eg gnu.* for us and sun.* for
the JDK) you also have to specify the packages to search for. Try adding
"+java -java.awt.peer -java.text.resources" to the end of each of your
command lines.

The "+java" says "I want everything under java.*", and then the
"-java.awt.peer" and "-java.text.resources" exclude those packages (they
were determined by experimentation and are correct for JDK1.1 - Sun has
public classes in those packages, but neither of them are part of the
Javadocs.)

> I probably need to investigate why it isn't recursing normally as I'd
> prefer and why it doesn't seem to output anything other than
> Scanning/Done messages.

Since you didn't specify "+anything", no classes were matched. I should
probably change the code so that if no "+" arguments are given, a
"+<null string>" argument is assumed... 

Thanks for trying it out :)

Stuart.

PS I'm >< this close to having it working using the jode.bytecode
library, which will give more reliable results for things like
compile-time constants. Also Reflection seems to have a big problem with
not ever telling me about protected members. Just need to get
SerialVersionUID checking working... Watch this space :)

Reply via email to