What annotations would I expect to see on the TypeMirror materialized from a TypeElement ?
Srikanth S Adayapalam
srikanth_sankaran at in.ibm.com
Mon Oct 7 20:35:53 PDT 2013
> From: Srikanth S Adayapalam/India/IBM at IBMIN
> Sent by: type-annotations-spec-experts-bounces at openjdk.java.net
>
> Hello,
>
> Thanks in advance for your clarification.
>
> @TypeUseAnnotation
> public class X {
>
> }
>
> Experiments with 8b108 show that (typeElement.asType()).
> getAnnotationMirrors()
> return nothing. Is this warranted ?
I should have added: we like this behavior :) it simplifies
somethings in our implementation and imposes a model that
from a TypeMirror you get annotations for the type-use site
and from an Element you get annotations for a declaration
site.
Nevertheless checking to make sure this is intended.
Thanks!
Srikanth
More information about the type-annotations-spec-experts
mailing list