JSR-308/type-annotations, javap and Pack200

Werner Dietl wdietl at gmail.com
Wed Jan 30 10:51:38 PST 2013


Hi Kumar,

>>> I am working on making pack200/JSR-200 comply with Type Annotations for
>>> this I need the following:
>>> 1. a working javap and specifically spec. compliant c.s.t.classfile.* for
>>> verification
>>> 2. sample class file(s) containing all possible TypeAnnotations
>>>
>>> As for 1. I tried using javap for class files and I get a hex dump, this
>>> typically means that c.s.t.classfile
>>> package is not yet ready. What is the ETA for all of this to be complete
>>> ?

Please do send us source code where you only see a hex dump. I'm not
aware of any issues with javap output.


>>> As for 2. are there existing class files which have these annotations or
>>> sample source code when
>>> compiled will produce all the possible Runtime(In)VisibleTypeAnnotations
>>> ?
>
> I have found some class files which have these annotations. Is there a test
> file
> that can produce as many of the cases in the 'target_info' union.

If you have a look at the files in

langtools/test/tools/javac/annotations/typeAnnotations/newlocations/

you should find self-contained examples for all syntactic locations.
If you're also interested in what we expect for type annotations, the
examples in

langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos

might be interesting.

Please let me know whether there are any further details that I can
help you with.

cu, WMD.


>>>
>>> Appreciate any information on these.
>>>
>>> Thanks
>>> Kumar
>>>
>>
>



-- 
http://www.google.com/profiles/wdietl


More information about the type-annotations-dev mailing list