< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java

Print this page

        

*** 2214,2224 **** } public void visitTypeTest(JCInstanceOf tree) { genExpr(tree.expr, tree.expr.type).load(); setTypeAnnotationPositions(tree.pos); ! code.emitop2(instanceof_, makeRef(tree.pos(), tree.clazz.type)); result = items.makeStackItem(syms.booleanType); } public void visitIndexed(JCArrayAccess tree) { genExpr(tree.indexed, tree.indexed.type).load(); --- 2214,2224 ---- } public void visitTypeTest(JCInstanceOf tree) { genExpr(tree.expr, tree.expr.type).load(); setTypeAnnotationPositions(tree.pos); ! code.emitop2(instanceof_, makeRef(tree.pos(), tree.pattern.type)); result = items.makeStackItem(syms.booleanType); } public void visitIndexed(JCArrayAccess tree) { genExpr(tree.indexed, tree.indexed.type).load();
< prev index next >