changeset 2207:b832dc269136

No type annotations with an UNKNOWN position should exist. Correctly format an error for this.
author wmdietl
date Sun, 17 Feb 2013 19:25:50 -0800
parents 5d5488d2ce00
children 53a635e47bda
files src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Sun Feb 17 19:25:06 2013 -0800
+++ b/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Sun Feb 17 19:25:50 2013 -0800
@@ -871,7 +871,8 @@
                     // For method parameters we get the annotation twice! Once with
                     // a valid position, once unknown.
                     // TODO: find a cleaner solution.
-                    // System.err.println("ClassWriter: Position UNKNOWN in type annotation: " + tc);
+                    PrintWriter pw = log.getWriter(Log.WriterKind.ERROR);
+                    pw.println("ClassWriter: Position UNKNOWN in type annotation: " + tc);
                     continue;
                 }
             }