This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]