6872011: Update printing processor to support JSR 308
authordarcy
Tue, 25 Aug 2009 16:41:32 -0700
changeset 3763 be9e8bdd7ead
parent 3662 686143fe191f
child 3764 f0077f165983
6872011: Update printing processor to support JSR 308 Reviewed-by: jjg
langtools/src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java
--- a/langtools/src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java	Mon Aug 24 14:38:42 2009 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java	Tue Aug 25 16:41:32 2009 -0700
@@ -48,7 +48,8 @@
  * deletion without notice.</b>
  */
 @SupportedAnnotationTypes("*")
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
+// TODO: Change to version 7 based visitors when available
+@SupportedSourceVersion(SourceVersion.RELEASE_7)
 public class PrintingProcessor extends AbstractProcessor {
     PrintWriter writer;
 
@@ -374,6 +375,7 @@
                 for(TypeParameterElement tpe: typeParams) {
                     if (!first)
                         writer.print(", ");
+                    printAnnotationsInline(tpe);
                     writer.print(tpe.toString());
                     first = false;
                 }