Implementation of changed bytecode representation

Werner Dietl wdietl at gmail.com
Mon Dec 3 01:15:49 PST 2012


Please find a patch against the type-annotations/langtools repository
attached (I just pushed a recent merge with tl).
I implemented many of the recently discussed bytecode changes: reorder
elements, remove _COMPONENT TargetTypes, and introduce TypePathEntry.
It's not quite done yet: I still need to separate numbering of type
arguments and arrays/inner types, renumber inner types, and adapt the
referenceinfo test cases (which will be a big pain and I would prefer
doing this only once).

I would appreciate feedback on the changes to class
com.sun.tools.javac.code.TypeAnnotationPosition, in particular how I
added TypePathEntry, TPEKind, and the new location field.
The whole com.sun.tools.javac package hierarchy compiles; packages
classfile and javap currently won't compile, as they depend on code
duplicated from TypeAnnotationPosition and I only want to copy that
code over once. The uses are however mostly adapted already.

All comments very welcome!
cu, WMD.

-- 
http://www.google.com/profiles/wdietl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2012_12_02-type-annotations-langtools.diff.bz2
Type: application/x-bzip2
Size: 11361 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/type-annotations-dev/attachments/20121203/54f1b325/2012_12_02-type-annotations-langtools.diff.bz2 


More information about the type-annotations-dev mailing list