Java: Fix for PR 5850

Bryce McKinlay bryce@waitaki.otago.ac.nz
Wed Mar 27 00:20:00 GMT 2002


This patch fixes field lookups to work more like they are supposed to 
according to the JLS.

Previously it would search in enclosing contexts before it has searched 
in all the supertypes of the current class, which is wrong. It could 
also find a field in an enclosing context of a supertype, which is also 
wrong. This change fixes both those bugs.

Rebuilt libjava and ran testsuite without regressions. Also rebuilt 
freenet. OK to commit?

regards

Bryce.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: java-5850.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020327/43044055/attachment.ksh>


More information about the Java-patches mailing list