From akuhn at gmx.ch Fri Feb 1 19:51:08 2008 From: akuhn at gmx.ch (Adrian Kuhn) Date: Sat, 2 Feb 2008 04:51:08 +0100 Subject: Question re type information during annotation processing Message-ID: <157C6C1F-6C1A-47BF-9F2C-65AC983BF41C@gmx.ch> 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) From scolebourne at btopenworld.com Tue Feb 5 00:59:39 2008 From: scolebourne at btopenworld.com (Stephen Colebourne) Date: Tue, 05 Feb 2008 08:59:39 +0000 Subject: Question re type information during annotation processing In-Reply-To: <157C6C1F-6C1A-47BF-9F2C-65AC983BF41C@gmx.ch> References: <157C6C1F-6C1A-47BF-9F2C-65AC983BF41C@gmx.ch> Message-ID: <47A8257B.7090003@btopenworld.com> Adrian Kuhn wrote: > 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? You will find compiler experts here, but most are not interested in new language features AFAICT. If you want to implement an idea for a Java language feature (or discuss the idea), you might try Kijaro, http://kijaro.dev.java.net. Stephen From mr at sun.com Fri Feb 29 23:01:06 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:01:06 +0000 Subject: hg: jdk7/tl: 2 new changesets Message-ID: <20080301070106.D21DF260EE@hg.openjdk.java.net> Changeset: 0a5c5386a678 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/rev/0a5c5386a678 Added tag jdk7-b24 for changeset cfeea66a3fa8 + .hgtags Changeset: c57bef8dda9c Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/rev/c57bef8dda9c 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:01:20 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:01:20 +0000 Subject: hg: jdk7/tl/corba: 2 new changesets Message-ID: <20080301070122.5C23C260F5@hg.openjdk.java.net> Changeset: 474c23b174e9 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/corba/rev/474c23b174e9 Added tag jdk7-b24 for changeset 55540e827aef + .hgtags Changeset: fec639c69db2 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/corba/rev/fec639c69db2 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:01:48 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:01:48 +0000 Subject: hg: jdk7/tl/hotspot: 2 new changesets Message-ID: <20080301070153.C9D70260FC@hg.openjdk.java.net> Changeset: 92489cdc94d1 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/hotspot/rev/92489cdc94d1 Added tag jdk7-b24 for changeset a61af66fc99e + .hgtags Changeset: 7836be3e92d0 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/hotspot/rev/7836be3e92d0 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:02:39 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:02:39 +0000 Subject: hg: jdk7/tl/jaxp: 2 new changesets Message-ID: <20080301070242.F009126103@hg.openjdk.java.net> Changeset: 9e3c1ad7cdb9 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jaxp/rev/9e3c1ad7cdb9 Added tag jdk7-b24 for changeset 6ce5f4757bde + .hgtags Changeset: 49a4bc7b0aa0 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jaxp/rev/49a4bc7b0aa0 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:02:58 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:02:58 +0000 Subject: hg: jdk7/tl/jaxws: 2 new changesets Message-ID: <20080301070301.9CAA22610A@hg.openjdk.java.net> Changeset: 7d53d3bd7879 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jaxws/rev/7d53d3bd7879 Added tag jdk7-b24 for changeset 0961a4a21176 + .hgtags Changeset: 018781e80410 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jaxws/rev/018781e80410 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:03:17 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:03:17 +0000 Subject: hg: jdk7/tl/jdk: 2 new changesets Message-ID: <20080301070353.B6CF526111@hg.openjdk.java.net> Changeset: 99a06bc7fdb5 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/99a06bc7fdb5 Added tag jdk7-b24 for changeset 37a05a11f281 + .hgtags Changeset: 8266cb7549d3 Author: mr Date: 2008-02-29 20:04 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/8266cb7549d3 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 23:05:35 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 07:05:35 +0000 Subject: hg: jdk7/tl/langtools: 2 new changesets Message-ID: <20080301070539.3717326118@hg.openjdk.java.net> Changeset: e4dae1993f8b Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/langtools/rev/e4dae1993f8b Added tag jdk7-b24 for changeset 9a66ca7c79fa + .hgtags Changeset: e5e9fa6fa29c Author: mr Date: 2008-02-29 20:04 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/langtools/rev/e5e9fa6fa29c 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf