[code-reflection] RFR: Break infinite recursion in ReflectMethods::typeToTypeElement
Adam Sotona
asotona at openjdk.org
Fri Jan 16 12:24:11 UTC 2026
On Thu, 15 Jan 2026 19:25:34 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> Following piece of code to crash our compilation with `StackOverflowError`:
>
> @Reflect
> <E extends Enum<E>> void crash(Enum<E> e) {}
>
>
> This PR breaks the infinite recursion in `ReflectMethods::typeToTypeElement`.
Thank you!
I'll create a follow up RFE with your analysis.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/849#issuecomment-3759783582
More information about the babylon-dev
mailing list