[code-reflection] RFR: Explicit op factory implementations
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Jun 27 09:03:18 UTC 2025
On Thu, 26 Jun 2025 21:48:28 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Instead of using reflection to construct operation factories for `JavaOp` and `CoreOp` use explicit methods. These methods were generated with some helper code that is commented out.
>
> This enables constructors/methods that construct from an externalized op to become package private.
>
> In a subsequent PR we can remove the class value factory implementation and update the examples to use explicit factories or copy the class value implementation. Keeping the annotation `OpDeclaration` seems useful for now, but may be better if enclosed within `Op`, and it may be made internal later on.
Marked as reviewed by mcimadamore (Reviewer).
-------------
PR Review: https://git.openjdk.org/babylon/pull/467#pullrequestreview-2965533793
More information about the babylon-dev
mailing list