langtools/src/share/classes/com/sun/tools/javac/jvm/Gen.java
changeset 16807 b442b47d3ae9
parent 16801 e2de240b437f
child 17578 46ac954e4a84
equal deleted inserted replaced
16806:e2fe9f7bf685 16807:b442b47d3ae9
  1746         // Generate code for method.
  1746         // Generate code for method.
  1747         Item m = genExpr(tree.meth, methodType);
  1747         Item m = genExpr(tree.meth, methodType);
  1748         // Generate code for all arguments, where the expected types are
  1748         // Generate code for all arguments, where the expected types are
  1749         // the parameters of the method's external type (that is, any implicit
  1749         // the parameters of the method's external type (that is, any implicit
  1750         // outer instance of a super(...) call appears as first parameter).
  1750         // outer instance of a super(...) call appears as first parameter).
       
  1751         MethodSymbol msym = (MethodSymbol)TreeInfo.symbol(tree.meth);
  1751         genArgs(tree.args,
  1752         genArgs(tree.args,
  1752                 TreeInfo.symbol(tree.meth).externalType(types).getParameterTypes());
  1753                 msym.externalType(types).getParameterTypes());
  1753         code.statBegin(tree.pos);
  1754         if (!msym.isDynamic()) {
  1754         code.markStatBegin();
  1755             code.statBegin(tree.pos);
       
  1756             code.markStatBegin();
       
  1757         }
  1755         result = m.invoke();
  1758         result = m.invoke();
  1756     }
  1759     }
  1757 
  1760 
  1758     public void visitConditional(JCConditional tree) {
  1761     public void visitConditional(JCConditional tree) {
  1759         Chain thenExit = null;
  1762         Chain thenExit = null;