< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeTranslator.java

Print this page

        

@@ -352,11 +352,16 @@
         result = tree;
     }
 
     public void visitTypeTest(JCInstanceOf tree) {
         tree.expr = translate(tree.expr);
-        tree.clazz = translate(tree.clazz);
+        tree.pattern = translate(tree.pattern);
+        result = tree;
+    }
+
+    public void visitBindingPattern(JCBindingPattern tree) {
+        tree.vartype = translate(tree.vartype);
         result = tree;
     }
 
     public void visitIndexed(JCArrayAccess tree) {
         tree.indexed = translate(tree.indexed);
< prev index next >