On the impl of AnnotatedType
Werner Dietl
wdietl at gmail.com
Thu Jan 24 19:28:55 PST 2013
There are also java.lang.reflect.AnnotatedType and several subclasses
like AnnotatedParameterizedType.
Is it a goal to have similar names and hierarchies between
java.lang.reflect and javax.lang.model.type?
cu, WMD.
On Thu, Jan 24, 2013 at 11:06 AM, Joe Darcy <joe.darcy at oracle.com> wrote:
> 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
>
--
http://www.google.com/profiles/wdietl
More information about the type-annotations-dev
mailing list