src/share/classes/com/sun/tools/javac/code/Types.java

changeset 1600
3fef0cae83b3
parent 1598
7ac9242d2ca6
child 1605
94e67bed460d
equal deleted inserted replaced
1599:9f0ec00514b6 1600:3fef0cae83b3
510 final List<Type> thrown1 = thrown; 510 final List<Type> thrown1 = thrown;
511 return new FunctionDescriptor(bestSoFar) { 511 return new FunctionDescriptor(bestSoFar) {
512 @Override 512 @Override
513 public Type getType(Type origin) { 513 public Type getType(Type origin) {
514 Type mt = memberType(origin, getSymbol()); 514 Type mt = memberType(origin, getSymbol());
515 return new MethodType(mt.getParameterTypes(), mt.getReturnType(), thrown1, syms.methodClass); 515 return createMethodTypeWithThrown(mt, thrown1);
516 } 516 }
517 }; 517 };
518 } 518 }
519 519
520 boolean isSubtypeInternal(Type s, Type t) { 520 boolean isSubtypeInternal(Type s, Type t) {

mercurial