impl for annotated types

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Feb 14 09:48:04 PST 2013


On 02/14/2013 09:43 AM, Jonathan Gibbons wrote:
> Werner,
>
> How well encapsulated is the code to create instances of 
> javac.code.Type that have annotations?  For example, is it always 
> encapsulated within a method such as Type.createAnnotatedType, for use 
> like
>     Type annoType = type.createAnnotatedType(annos);
>
> As a follow-up, think of this as a thinking-aloud hypothetical 
> question....
>
> Previously, we've considered delegation and subtyping as a way of 
> representing annotated types. What if we gave up on the "minimize 
> space" requirement and added a List<Attribute.TypeCompound> into each 
> Type?  How easy would that be?
>
> -- Jon

Joel,

Assuming we have to go for some combination of ugly methods and ugly 
types for javax.lang.model.type, how well would such a proposal fit in 
with the proposed ugly types?

-- Jon


More information about the type-annotations-dev mailing list