Question re type information during annotation processing

Adrian Kuhn akuhn at gmx.ch
Fri Feb 1 19:51:08 PST 2008


Dear list,

Inspired by Sundararajan's empty catch block checker and a recent  
Ecoop paper, I have written a small processor that counts the use of  
exception types in catch and throw statements. Is there any other,  
more elegant way to initialize type information of tree nodes than  
getting an instance of Attr and calling attribClass() myself? This is  
internal stuff of the compiler, I would like to avoid that. Please  
find attached the source code of my compiler plugin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExceptionTally.java
Type: application/octet-stream
Size: 3569 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20080202/44588b33/ExceptionTally.java 
-------------- next part --------------


NB we have also some more questions regarding the implementation of a  
new language feature, is this list the right place for this kind of  
questions?

cheers,
AA


-- 
Adrian Kuhn MSc
Software Composition Group
University of Bern, Switzerland
http://www.iam.unibe.ch/~akuhn
http://www.iam.unibe.ch/~akuhn/news.xml (RSS)






More information about the compiler-dev mailing list