Punit Singh wrote: I know anonymous class is implementing Serializable interface, so this anonymous class will never be able to extend class C122, it cannot be a subclass of class C122, so I will not allow this.
I did not understand what you are trying to say here. Can you try to tell that again