aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-02-24 01:57:05 +0900
committerchibash <chiba@javassist.org>2016-02-24 01:57:05 +0900
commitb110efa847be1d1f7c9d4932def4b49ea8a6dcaf (patch)
tree39f2b37cedc3f1c603de225b0f3b437e32d73a46 /src/main/javassist/compiler
parentd2d00601aa273adc4ceb47cc449fada0d35cb893 (diff)
downloadjavassist-b110efa847be1d1f7c9d4932def4b49ea8a6dcaf.tar.gz
javassist-b110efa847be1d1f7c9d4932def4b49ea8a6dcaf.zip
fixes JIRA JASSIST-250
Diffstat (limited to 'src/main/javassist/compiler')
-rw-r--r--src/main/javassist/compiler/MemberResolver.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/javassist/compiler/MemberResolver.java b/src/main/javassist/compiler/MemberResolver.java
index ddbe1be4..a1073a76 100644
--- a/src/main/javassist/compiler/MemberResolver.java
+++ b/src/main/javassist/compiler/MemberResolver.java
@@ -104,7 +104,8 @@ public class MemberResolver implements TokenId {
int n = list.size();
for (int i = 0; i < n; ++i) {
MethodInfo minfo = (MethodInfo)list.get(i);
- if (minfo.getName().equals(methodName)) {
+ if (minfo.getName().equals(methodName)
+ && (minfo.getAccessFlags() & AccessFlag.BRIDGE) == 0) {
int res = compareSignature(minfo.getDescriptor(),
argTypes, argDims, argClassNames);
if (res != NO) {
@@ -121,7 +122,8 @@ public class MemberResolver implements TokenId {
if (onlyExact)
maybe = null;
else
- onlyExact = maybe != null;
+ if (maybe != null)
+ return maybe;
int mod = clazz.getModifiers();
boolean isIntf = Modifier.isInterface(mod);