mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8005244: Implement overload resolution as per latest spec EDR
Add support for stuck expressions and provisional applicability Reviewed-by: jjg
This commit is contained in:
parent
e5aa886e8b
commit
442154dcf9
58 changed files with 794 additions and 457 deletions
|
@ -186,10 +186,7 @@ public class SamConversionComboTest {
|
|||
if(context != Context.CONSTRUCTOR && fInterface != FInterface.C && methodDef == MethodDef.METHOD6)
|
||||
//method that throws exceptions not thrown by the interface method is a mismatch
|
||||
return false;
|
||||
if(context == Context.CONSTRUCTOR &&
|
||||
methodReference != MethodReference.METHOD1 &&
|
||||
methodReference != MethodReference.METHOD2 &&
|
||||
methodReference != MethodReference.METHOD3)//ambiguous reference
|
||||
if(context == Context.CONSTRUCTOR)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue