[code-reflection] Integrated: Break infinite recursion in ReflectMethods::typeToTypeElement
Adam Sotona
asotona at openjdk.org
Fri Jan 16 12:24:12 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`.
This pull request has now been integrated.
Changeset: 8d7e4484
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/8d7e4484deaf0a88f4322b256ec53d46f1ae4bcb
Stats: 10 lines in 1 file changed: 7 ins; 0 del; 3 mod
Break infinite recursion in ReflectMethods::typeToTypeElement
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/babylon/pull/849
More information about the babylon-dev
mailing list