plyj icon indicating copy to clipboard operation
plyj copied to clipboard

Expression Statemets within catch statements are not Visited

Open anuragagarwal561994 opened this issue 9 years ago • 0 comments

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.

anuragagarwal561994 avatar Nov 17 '15 10:11 anuragagarwal561994