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) { |