changeset 456:8fca1e8a318f

ASMClassInfo should use "outer" visitor to figure out declared class.
author shade
date Sat, 01 Mar 2014 02:56:40 +0400
parents f3abe632b76f
children bbb7c7d0b22b
files jmh-core/src/main/java/org/openjdk/jmh/generators/bytecode/ASMClassInfo.java
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/generators/bytecode/ASMClassInfo.java	Sat Mar 01 02:12:20 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/generators/bytecode/ASMClassInfo.java	Sat Mar 01 02:56:40 2014 +0400
@@ -157,9 +157,11 @@
     }
 
     @Override
-    public void visitOuterClass(String owner, String name, String desc) {
-        declaringClass = name;
-        super.visitOuterClass(owner, name, desc);
+    public void visitInnerClass(String name, String outerName, String innerName, int access) {
+        if (name.equals(idName)) {
+            declaringClass = outerName;
+        }
+        super.visitInnerClass(name, outerName, innerName, access);
     }
 
     @Override