src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java
Print this page
rev 377 : 6872011: Update printing processor to support JSR 308
Reviewed-by: jjg
*** 46,56 ****
* If you write code that depends on this, you do so at your own risk.
* This code and its internal interfaces are subject to change or
* deletion without notice.</b>
*/
@SupportedAnnotationTypes("*")
! @SupportedSourceVersion(SourceVersion.RELEASE_6)
public class PrintingProcessor extends AbstractProcessor {
PrintWriter writer;
public PrintingProcessor() {
super();
--- 46,57 ----
* If you write code that depends on this, you do so at your own risk.
* This code and its internal interfaces are subject to change or
* deletion without notice.</b>
*/
@SupportedAnnotationTypes("*")
! // TODO: Change to version 7 based visitors when available
! @SupportedSourceVersion(SourceVersion.RELEASE_7)
public class PrintingProcessor extends AbstractProcessor {
PrintWriter writer;
public PrintingProcessor() {
super();
*** 372,381 ****
--- 373,383 ----
boolean first = true;
for(TypeParameterElement tpe: typeParams) {
if (!first)
writer.print(", ");
+ printAnnotationsInline(tpe);
writer.print(tpe.toString());
first = false;
}
writer.print(">");