problem with all type annotations on method parameters
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Jan 2 19:47:33 PST 2013
On 01/02/2013 05:56 PM, Werner Dietl wrote:
>> >Finally, TypeAnnotations does not follow the typical javac architectural
>> >methodology. It is written as a public class containing a single public
>> >static method, and as such, as to be passed contextual info like Symtab,
>> >Names and Log. It would be more obvious to make the class available from a
>> >Context in the standard way.
> As there is only exactly one call of that single public method, it
> seemed easier to just make it callable instead of requiring creating a
> new instance first.
> I'll see how to improve this.
>
>
I think it's more a case of fixing the other issues first, and this one
is likely
to sort itself out. I suspect we will need more than one entry point
into this
code, for the various types of decls, and for blocks of code. Once we have
multiple entry points, a more conventional presentation will be more
natural.
-- Jon
More information about the type-annotations-dev
mailing list