changeset 2385:ea9d569f4e14

Prevent duplicate visit for anonymous classes. Improve debugging output.
author wmdietl
date Thu, 04 Apr 2013 17:43:24 -0700
parents 0f12d7fbb785
children c3c8c2f84232
files src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Wed Apr 03 16:38:58 2013 -0700
+++ b/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Thu Apr 04 17:43:24 2013 -0700
@@ -1171,7 +1171,8 @@
             scan(tree.clazz);
             scan(tree.args);
 
-            scan(tree.def);
+            // The class body will already be scanned.
+            // scan(tree.def);
         }
 
         @Override
@@ -1242,5 +1243,10 @@
                 }
             }
         }
+
+        @Override
+        public String toString() {
+            return super.toString() + ": sigOnly: " + sigOnly;
+        }
     }
 }