File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/net/sf/j2s/core/astvisitors Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -956,10 +956,14 @@ public boolean visit(MethodInvocation node) {
956
956
optionals .add (qn );
957
957
}
958
958
}
959
+
960
+ //the ofllowing fix introduces an error... reverting fix until a solution is found
959
961
//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
+ // }
963
967
}
964
968
return super .visit (node );
965
969
}
You can’t perform that action at this time.
0 commit comments