langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 29552 690d0becaf32
parent 29430 0fc887a8c519
child 29553 716d47f5a45e
equal deleted inserted replaced
29551:cad66be66e2e 29552:690d0becaf32
  2940     }
  2940     }
  2941 
  2941 
  2942     public void visitBinary(JCBinary tree) {
  2942     public void visitBinary(JCBinary tree) {
  2943         // Attribute arguments.
  2943         // Attribute arguments.
  2944         Type left = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.lhs, env));
  2944         Type left = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.lhs, env));
  2945         Type right = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.rhs, env));
  2945         Type right = chk.checkNonVoid(tree.rhs.pos(), attribExpr(tree.rhs, env));
  2946         // Find operator.
  2946         // Find operator.
  2947         Symbol operator = tree.operator = operators.resolveBinary(tree, tree.getTag(), left, right);
  2947         Symbol operator = tree.operator = operators.resolveBinary(tree, tree.getTag(), left, right);
  2948         Type owntype = types.createErrorType(tree.type);
  2948         Type owntype = types.createErrorType(tree.type);
  2949         if (operator.kind == MTH &&
  2949         if (operator.kind == MTH &&
  2950                 !left.isErroneous() &&
  2950                 !left.isErroneous() &&