Type annotations in static initializers
jonathan.gibbons at oracle.com
Thu Feb 21 09:43:35 PST 2013
On 02/20/2013 11:57 PM, Werner Dietl wrote:
> Thanks for this pointer, Jon.
> Method javac.jvm.Gen.normalizeDefs indeed seems relevant, as it
> contains initCode and clinitCode for instance and class initializers -
> for both of which I want to store the type annotations.
> However, I cannot find the MethodSymbol that I saw at Attr.
> [cl]initCode is just a List of JCStatement and I couldn't find how to
> get to the MethodSymbol that I previously saw in Attr.
> Any more hints? Something very obvious I'm missing?
System.err.println, and now DPrinter is your friend. Can you trace
where all <clinit> symbols are being created?
More information about the type-annotations-dev