confusion when CLASSPATH includes compiled class

Tom Tromey tromey@redhat.com
Wed Mar 23 20:47:00 GMT 2005


>>>>> "Per" == Per Bothner <per@bothner.com> writes:

Per> From my reading of Sun's JavaDoc for java.lang.reflect.Field, I conclude
Per> that the getXxx methods need to initialize the declaring class, if it
Per> hasn't been. I don't see any code to do this.
For Field, it is in natField.cc:getAddr().
(I've missed this before too.)
For Method, it is in natMethod.cc:invoke().
We do have at least two known class initialization bugs though. See
PR 5178 and PR 19285. 19285 affects the interpreter and BC-compiled
code.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /