You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a case where the JDK successfully infers the generics where the eclipse compiler emits an error.
I'm using Adoptium JDK 11.0.13+8 and eclipse 4.22.
The following file is the simplest reproduction of the problem I was able to muster:
Yeah, we never settled with Oracle over the exact inference rules when wild cards are involved. They acknowledged that javac does more than what's written in JLS, but we never succeeded to agree on what a compiler really should do. My guess is that first JLS needs to be improved before we could possibly make progress.
There is a case where the JDK successfully infers the generics where the eclipse compiler emits an error.
I'm using Adoptium JDK 11.0.13+8 and eclipse 4.22.
The following file is the simplest reproduction of the problem I was able to muster:
I've also tried to compile the same with Adoptium JDK 17.0.2+8 and the class still compiled fine.
I'm not sure on which side is the bug though.
The text was updated successfully, but these errors were encountered: