changeset 2360:d9dfab2045f4

Improve output of nested types.
author wmdietl
date Mon, 25 Mar 2013 15:22:07 +0100
parents e5e49c572fe2
children d052c5306df2
files src/share/classes/com/sun/tools/javac/code/Printer.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/code/Printer.java	Sat Mar 23 01:37:49 2013 +0100
+++ b/src/share/classes/com/sun/tools/javac/code/Printer.java	Mon Mar 25 15:22:07 2013 +0100
@@ -274,10 +274,8 @@
                 return visit(t.underlyingType.getEnclosingType(), locale) +
                         ". " +
                         t.typeAnnotations +
-                        " " + t.underlyingType;
+                        " " + className((ClassType)t.underlyingType, false, locale);
             } else {
-                // TODO: this prints "@A java.lang.Object". How can we easily
-                // split of the package name? Nested types are handled above.
                 return t.typeAnnotations + " " + visit(t.underlyingType, locale);
             }
         } else {