diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/expr/FieldAccess.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/javassist/expr/FieldAccess.java b/src/main/javassist/expr/FieldAccess.java index 01658ed6..7c6d2691 100644 --- a/src/main/javassist/expr/FieldAccess.java +++ b/src/main/javassist/expr/FieldAccess.java @@ -111,7 +111,10 @@ public class FieldAccess extends Expr { */ public CtField getField() throws NotFoundException { CtClass cc = getCtClass(); - return cc.getField(getFieldName()); + int index = iterator.u16bitAt(currentPos + 1); + ConstPool cp = getConstPool(); + return cc.getField(cp.getFieldrefName(index), cp.getFieldrefType(index)); + //return cc.getField(getFieldName()); } /** |