This content has been marked as final. Show 1 reply
But this too is not possible. Not only is there theits not allowed because the annotations were designed very conservatively, and there are some cases where if it were allowed, things start to get really nasty. The annotation spec designers just avoided all the nasty cases by not allowing anything that got remotely close to them.
problem about how to specify a default value for the
children(), the compiler is also giving me the
following exception: "Cycle detected: the annotation
type Check cannot contain attributes of the
annotation type itself". Why is that?
Anybody has an idea? Or should I leave this trackGo vote for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6264216 and maybe one day some of these safe cases (biut close to nasty cases) will be allowed.
altogether, and try to solve it without annotations?
Yep, annotations seem to offer so much, but suddenly you find they don't go quite far enough to get you home, nearly, but not quite. Sad.
So meantime, think laterally.