confusion when CLASSPATH includes compiled class

Per Bothner per@bothner.com
Wed Mar 23 20:15:00 GMT 2005


Tom Tromey wrote:
>>>>>>"Per" == Per Bothner <per@bothner.com> writes:
> 
> Per> I think I understand what is going on, at least for interpreted classes.
> [...]
> Per> Does this analysis seem correct?
> 
> Yes.  Thanks for looking at this.

A related issue:

 From my reading of Sun's JavaDoc for java.lang.reflect.Field, I conclude
that the getXxx methods need to initialize the declaring class, if it
hasn't been.  I don't see any code to do this.

Likewise for setXxx, and invoke on a Method instance.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Java mailing list