On the impl of AnnotatedType
Joe Darcy
joe.darcy at oracle.com
Thu Jan 24 11:06:33 PST 2013
On 1/24/2013 9:48 AM, Jonathan Gibbons wrote:
> On 01/24/2013 09:40 AM, Werner Dietl wrote:
>> All other subtypes of TypeMirror don't use "Mirror" in the interface
>> name. That's why I chose AnnotatedType over AnnotatedTypeMirror.
>>
>> It looks like the prevailing opinion is to try the anonymous subtype
>> approach.
>> Should I or do you want to do this in the type-annotations repo or in
>> TL?
>>
>> cu, WMD.
>
> Yes, but Joel's point is that annotated-ness is just an extension of
> TypeMirror, and not a fundamental new subtype. If we had default
> methods available, we would use that instead of AnnotatedType. I tend
> to agree, but Joe has the final say in this part of the API.
>
Unfortunately we cannot use default methods in the version of
javax.lang.model.* shipped as part of Java SE 8 since we need to be able
to turn that version of the API on top of Java SE 7 implementations.
(This constraint allows IDEs to model the latest language version, while
running on older JDKs.)
-Joe
More information about the type-annotations-dev
mailing list