This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: confusion when CLASSPATH includes compiled class
>>>>> "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