type annotations inside javac

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Jan 30 19:27:27 PST 2013


On 01/30/2013 06:33 PM, Werner Michael Dietl wrote:
> Jon, your examples were troubled by primitive types not being copied
> correctly. I've pushed a fix for this earlier tonight. I hadn't
> correctly written a visitType method - which apparently is also used
> for primitives. Please re-run your experiment and let me know whether
> you agree with my descriptions above.
If you apply the patch I provided, it sets up a test that you can run 
with jtreg;
     test/tools/javac/annotations/demo/Demo.java

Use jtreg to run the test, and maybe use -va to have the output
written direct to the console. Otherwise, you can find the output
in the .jtr file for the test.

-- Jon


More information about the type-annotations-dev mailing list