plyj
plyj copied to clipboard
Expression Statemets within catch statements are not Visited
I have a java file with following sample code in it:
public class ClassName {
public void main(){
try {
} catch (SomeException e) {
addJavascriptInterface(1, 2);
}
}
}
Now I am implementing a MethodInvocation visitor by following the symbol_visitor.py example like this:
def visit_MethodInvocation(self, method_invocation):
dosomething
So for all the other cases except for the try and catch statements I am able to get the results.
I tried to figure out the problem and I suspected that Try Class itself has an accept definition. When I removed it, it just worked fine.