Thursday October 05, 2006
Joseph D. Darcy's Sun WeblogJoseph D. Darcy's Sun Weblog JDK 6 Build 101 JSR 269 API Changes There haven't been any API changes in JSR 269 since build 98 and the proposed final draft; however, build 101 includes a sample annotation processor showing how the API can be used to check program structure. The sample file is under sample/javac/processing/src/CheckNameProcessor.javafrom the root JDK installation directory. As the name suggests, this processor checks that the source being processed follows the naming conventions discussed in the language specification. This name checking is meant to be representative of a class of properties that could be checked for at build time by annotation processors. A few stylistic points to note in the sample:
For production use, the Comments:
Post a Comment: Comments are closed for this entry. |
Calendar
RSS Feeds
All /Annotation Processing /General /Java /JavaOne /Numerics /OpenJDK SearchLinks
NavigationReferersToday's Page Hits: 371 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||