RFR: 8361499: Intersection type cast causes javac crash with -Xjcov
Vicente Romero
vromero at openjdk.org
Wed Jul 9 14:43:39 UTC 2025
On Wed, 9 Jul 2025 10:29:13 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> After TransTypes decomposes an intersection type in its components, there is no point keeping the intersection AST around. This could lead to errors in the backend. This PR is proposing lowering the intersection AST to it's first component,
>>
>> TIA
>
> test/langtools/tools/javac/NoTypeIntersectionASTAfterTransTypesTest.java line 73:
>
>> 71: }
>> 72:
>> 73: static class MyTransTypes extends TransTypes {
>
> I suppose another possible way to test would have been to register a task listener onto the compiler, and run that after the desugaring step. That way you don't have to extend TransTypes and use preRegister
right, I just wanted to be as precise as possible, with the current version we can check at the method level
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26203#discussion_r2195212101
More information about the compiler-dev
mailing list