JSR-308/type-annotations, javap and Pack200

Werner Dietl wdietl at gmail.com
Wed Jan 30 11:29:49 PST 2013


Kumar,

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

Are your tests available somewhere?
I cannot make specific suggestions without knowing what you already
test. Covering all the cases from newlocations should exercise all
individual target_type values. You might want to write your own tests
to exercise more combinations.

cu, WMD.

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


More information about the type-annotations-dev mailing list