• Post Reply Bookmark Topic Watch Topic
  • New Topic

"Reference" searched in eclipse  RSS feed

 
Steve Mutonshi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following simple code



When I use eclipse IDE and highlight "handleAccess" method of "Manager" class, and click "reference", I saw two references to this method: one is "ManagerHandle", and one is "EmployeeHandle". I don't understand why it shows "EmployeeHandle" in the reference as well. "EmployeeHandle" code explicitly invokes "Employee" class' "handleAccess" method. It doesn't invoke "Manager" class' "handleAccess" method.
 
Knute Snortum
Sheriff
Posts: 4288
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that since Manager IS-A Employee, both references are given. But I see your point: Manager#handleAccess overrides Employee#handleAccess.

I'm adding this thread to the IDE forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!