JSR-308/type-annotations, javap and Pack200

Kumar Srinivasan kumar.x.srinivasan at oracle.com
Wed Jan 30 11:05:39 PST 2013


Hello Werner,

Thank you for taking your time from your extremely busy schedule, to
answer my questions.


>>>> 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.

This is no longer an issue.

>
>
>>>> 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.

I have implemented pack200 to handle the TypeAnnotations, my problem now
is to test such that every case in target_info is exercised. I have 
scraped some
class files langtools/test/......./typeAnnotations directory. So if you 
have any
specific suggestions which you think would be work for me, please let me
know.

Kumar

>
> cu, WMD.
>
>
>>>> Appreciate any information on these.
>>>>
>>>> Thanks
>>>> Kumar
>>>>
>
>



More information about the type-annotations-dev mailing list