In JDK-8025087, diagnostic examples were introduced for diagnostics reported from ClassReader:
http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1b469fd31e35
The examples require broken classfiles (classfiles that are not normally produced by javac), which is currently somewhat awkward to achieve. In particular, the examples use an annotation processor and the com.sun.tools.classfile library, to produce the broken classfiles, which is verbose and may cause confusion.
As a side-effect, it also causes dependency between the make/build.xml's "diags-examples" target and "build-javap" target.
Options to write diagnostic examples, that require specifically broken classfiles, more conveniently should be explored.
http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1b469fd31e35
The examples require broken classfiles (classfiles that are not normally produced by javac), which is currently somewhat awkward to achieve. In particular, the examples use an annotation processor and the com.sun.tools.classfile library, to produce the broken classfiles, which is verbose and may cause confusion.
As a side-effect, it also causes dependency between the make/build.xml's "diags-examples" target and "build-javap" target.
Options to write diagnostic examples, that require specifically broken classfiles, more conveniently should be explored.
- relates to
-
JDK-8025087 Annotation processing api returns default modifier for interface static method
-
- Closed
-