I am writing a piece of code in which I must use Object if it is an instance of a particular class.
As usual, I use instanceof to check compatibility.
The problem is that validation is never performed because the objects belong to the "weird" classes.
For example; when I call the getClass().getSimpleName() method on this object, it returns me the class name + $* (for example, ViewPart$1 instead of ViewPart ).
What does this $* mean? Is there a solution or workaround?
Maverik
source share