[lworld] RFR: 8281336: [lworld] Remove workaround in LambdaToMethod to circumvent BootstrapMethodError
    Aggelos Biboudis 
    duke at openjdk.java.net
       
    Mon Feb  7 22:45:25 UTC 2022
    
    
  
On Mon, 7 Feb 2022 12:33:39 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:
> Remove the workaround in Javac and include the fix from Mandy for runtime in lieu.
Maybe we can use the test from the the original PR?
import java.util.function.Supplier;
public primitive class CheckRefLambda {
    int theInteger;
    CheckRefLambda(int newValue){
        theInteger=newValue;
    }
    public Supplier<CheckRefLambda.ref> makeCopier(){
        return()->new CheckRefLambda(this.theInteger + 1);
    }
    public static void main(String[]args){
        CheckRefLambda rec=new CheckRefLambda(42);
        CheckRefLambda rec2=rec.makeCopier().get();
        if(rec2!=new CheckRefLambda(43)){
            throw new AssertionError("Classes should be equal");
        }
    }
}
-------------
PR: https://git.openjdk.java.net/valhalla/pull/631
    
    
More information about the valhalla-dev
mailing list