changeset 401:40aca381dcaf

6872011: Update printing processor to support JSR 308 Reviewed-by: jjg
author darcy
date Tue, 25 Aug 2009 16:41:32 -0700
parents c863e90091ee
children 25f15fdd168a
files src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java	Mon Aug 24 14:38:42 2009 -0700
+++ b/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;
                 }