Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a186445

Browse files
author
sebastigurin
committed
the following fix introduces an error... reverting fix until a solution is found
1 parent 4851e76 commit a186445

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/net/sf/j2s/core/astvisitors/DependencyASTVisitor.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -956,10 +956,14 @@ public boolean visit(MethodInvocation node) {
956956
optionals.add(qn);
957957
}
958958
}
959+
960+
//the ofllowing fix introduces an error... reverting fix until a solution is found
959961
//sgurin: fix for bug http://sourceforge.net/tracker/?func=detail&aid=3037341&group_id=155436&atid=795800
960-
String methodOwnerClassName = resolveMethodBinding.getDeclaringClass().getQualifiedName();
961-
if(methodOwnerClassName!=null && !methodOwnerClassName.equals(""))
962-
requires.add(methodOwnerClassName);
962+
//in a static method call, if the mehthod's type is not this class, we require it.
963+
// String methodOwnerClassName = resolveMethodBinding.getDeclaringClass().getQualifiedName();
964+
// if(methodOwnerClassName!=null && !methodOwnerClassName.equals(Bindings.getBindingOfParentType(node).getQualifiedName())) {
965+
// requires.add(methodOwnerClassName);
966+
// }
963967
}
964968
return super.visit(node);
965969
}

0 commit comments

Comments
 (0)