I'm happy to announce that we have open sourced the apt
mirror API. The classes and interfaces in com.sun.mirror.apt.\*
introduced in Sun's JDK 5.0 are now available under a BSD license from the aptmirrorapi java.net
project; see the "Documents & files" page to download an archive of the source files.
By compiling the source files in the archive and creating the corresponding jar file, the resulting jar file can be used on a Java compiler's classpath instead of the tools.jar in Sun JDK when developing annotation processors.