Rethinking TypeAnnotation vs Annotation
Eric McCorkle
eric.mccorkle at oracle.com
Thu Feb 6 16:16:17 PST 2014
Could this be done as part of the more general annotations work?
I'm liking Joel's idea of dropping TypeCompound altogether. Maybe that
merge should be done now, and we can do the split later? I think it
would be a lot easier once the type annotations work is done.
On 02/06/14 17:00, Jonathan Gibbons wrote:
> Right now, Compound is used for two things, it is the representation of
> an annotation as an arg value of an enclosing annotation and it is used
> for "top level" annotation values. I suspect it is time to split those
> uses.
>
> -- Jon
>
> On 02/06/2014 01:48 PM, Werner Dietl wrote:
>> Hi all,
>>
>> an alternative would be to keep Compound only while it is unclear
>> whether an annotation is a type or declaration annotation and
>> introduce a new DeclarationCompound class that can be used when only
>> declaration annotations are expected.
>> Why not have the type system help us keep things straight?
>>
>> cu, WMD.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eric_mccorkle.vcf
Type: text/x-vcard
Size: 303 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20140206/6de8759a/eric_mccorkle.vcf
More information about the compiler-dev
mailing list