< prev index next > src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
Print this page
/*
- * Copyright (c) 2010, 2025, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
make.at(prevPos);
}
}
}
- return makeIndyCall(tree, syms.lambdaMetafactory, metafactoryName, staticArgs, indyType, indy_args, samSym.name);
+ Name lambdaName = samSym.name;
+ if (tree.codeReflectionInfo != null) {
+ tree.codeReflectionInfo.registerImplementation().accept(refSym.name);
+ }
+ Type lambdaMetafactory = tree.codeReflectionInfo != null ?
+ tree.codeReflectionInfo.reflectableLambdaMetafactory() : syms.lambdaMetafactory;
+ return makeIndyCall(tree, lambdaMetafactory, metafactoryName, staticArgs, indyType, indy_args, lambdaName);
}
/**
* Generate an indy method call with given name, type and static bootstrap
* arguments types
< prev index next >