You ask Eclipse to solve an impossible task.
To find out if a particular overridden method is called or not, it is not statically decidable, so Eclipse comes close to the answer.
Suppose you have an Object o field and that at some point you are doing o.equals(...) . To determine whether o can ever refer to a YourClass object, you need to determine the type of execution o for each possible execution path, which simply cannot be done statically.
The reason this is not possible is very similar to why the compiler rejects the following code:
Object o = "hello"; System.out.println(o.length());
The best you can do is probably debug your program by setting a breakpoint or throwing, for example, an UnsupportedOperationException from the equals method.
aioobe
source share