Open mpalat opened 7 months ago
tiny fix:
- new K() {
+ new K<>() {
And voilá ecj accepts.
I suggest not to spend much time on differences between javac and ecj when raw types are involved.
tiny fix:
- new K() { + new K<>() {
And voilá ecj accepts.
I suggest not to spend much time on differences between javac and ecj when raw types are involved.
I agree. While it is not directly coupled to https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2536 - perhaps we should simultaneously institute a policy that tickets involving raw types would not be acted upon
Test case to reproduce:
ecj throws "ERROR: Type mismatch: cannot convert from A<new K(){}> to A<K<X,?>>"
@srikanth-sankaran could you please have a quick look if time permits? thanks