Assume we have the following annotation type declaration in Java:
public @interface Foo {
Class value();
}
Now suppose I forgot to import class xyz.Bar. Then @Foo(Bar) will print a sensible error message (Jochen improved this a while back), but @Foo(Bar.class) will still print "unable to find class for enum".