Menu

#51 The static field lookup procedure mishandles interfaces

open
5
2009-10-04
2009-10-04
No

When looking up a static field during field resolution the field lookup procedure looks into the interfaces implemented by a class superclasses before the superclasses themselves. Thus if an interface declares a field with the same signature of a class implementing it the lookup procedure will incorrectly return the interface field instead of the class field when lookup starts from a child class.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB