Bug 574309

Summary: Compile error on deeply nested type parameters
Product: [Eclipse Project] JDT Reporter: Johannes Döbler <jd>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, jd, loskutov, manoj.palat, sravankumarl
Version: 4.19Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=574946
Whiteboard: stalebug
Attachments:
Description Flags
Java class to demonstrate the compile error
none
A simpler demo class which demonstrates the compiler error none

Description Johannes Döbler CLA 2021-06-18 09:09:27 EDT
Created attachment 286626 [details]
Java class to demonstrate the compile error

The compiler error is demonstrated in the attached sample Base.java at line 33.
I observe this error in Eclipse 4.20, 4.19 and 4.10 using a JDK 11.

javac compiles the class without errors.

The sample produces variables with "recursively" nested type parameters.
When they are "unnested", then at one stage the compiler doesn't resolve the type parameters correctly which can also be easily observed when looking
at the types in the content assist box.
Comment 1 Andrey Loskutov CLA 2021-06-18 09:15:48 EDT
Yep, still same on 4.21 head.
Comment 2 Johannes Döbler CLA 2021-07-05 10:51:24 EDT
Created attachment 286730 [details]
A simpler demo class which demonstrates the compiler error
Comment 3 Eclipse Genie CLA 2023-07-12 13:47:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.