Originally posted by Ernest Friedman-Hill:
If you want to use the name of a class in your code, then you don't want it to be anonymous, right?
Very much so. In fact, you can't expect the name to stay the same. While today it might be mypackage.MyClass$2, it can change into mypackage.MyClass$3 quite easily if you add another anonymous class to your main class.