summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2014-05-10 14:19:38 +0900
committerScott Marlow <smarlow@redhat.com>2014-05-27 12:14:24 -0400
commit2e1cdf42c62c8b9f63ffaf7fbc02b4fabe511146 (patch)
tree16f64313d6793f68a54c9b95a71389318a365462
parenta499e0df815291052d1133f576f76519f68667f6 (diff)
downloadjavassist-2e1cdf42c62c8b9f63ffaf7fbc02b4fabe511146.tar.gz
javassist-2e1cdf42c62c8b9f63ffaf7fbc02b4fabe511146.zip
fixed JIRA223
-rw-r--r--Readme.html2
-rw-r--r--javassist.jarbin707490 -> 684237 bytes
-rw-r--r--src/main/javassist/expr/FieldAccess.java5
-rw-r--r--src/test/javassist/JvstTest4.java4
4 files changed, 7 insertions, 4 deletions
diff --git a/Readme.html b/Readme.html
index 251e0e95..618562d1 100644
--- a/Readme.html
+++ b/Readme.html
@@ -283,7 +283,7 @@ see javassist.Dump.
<p>-version 3.19
<ul>
-<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216.
+<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216, 223.
</ul>
</p>
diff --git a/javassist.jar b/javassist.jar
index f3ef43a3..e2b447e1 100644
--- a/javassist.jar
+++ b/javassist.jar
Binary files differ
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());
}
/**
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index f1aca09e..8e60c16a 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -657,8 +657,8 @@ public class JvstTest4 extends JvstTestRoot {
long t2 = endTime2 - endTime;
long t3 = endTime3 - endTime2;
System.out.println("JIRA150: " + t1 + ", " + t2 + ", " + t3);
- assertTrue(t2 < t1 * 3);
- assertTrue(t3 < t1 * 2);
+ assertTrue(t2 < t1 * 4);
+ assertTrue(t3 < t1 * 3);
}
public void testJIRA150b() throws Exception {