[code-reflection] RFR: Add ConstructorRef [v2]
Paul Sandoz
psandoz at openjdk.org
Tue Apr 15 16:51:00 UTC 2025
On Mon, 14 Apr 2025 23:44:51 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> This is Maurizio's work.
>> This PR tries to make `NewOp` similar to how `InvokeOp` is designed. It does this by adding a descriptor for constructors: `ConstructorRef`.
>> `ConstructorRef` is wrapper around `FunctionType`, providing functionalities for resolution to a reflective instance.
>> Some changes are common between this PR and #393.
>
> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove code that was deleted by a previous PR
src/jdk.incubator.code/share/classes/jdk/incubator/code/op/CoreOp.java line 3932:
> 3930: * @return the instance creation operation
> 3931: */
> 3932: public static NewOp _new(boolean isVarargs, TypeElement returnType, ConstructorRef constructorDescriptor,
Update all the factory methods to accept `ConstructorRef` instead of `FunctionType`.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/395#discussion_r2045060683
More information about the babylon-dev
mailing list