eclipse-jdt / eclipse-jdt/eclipse.jdt.core
Potential type inference issue
Open
- Dominant language
- Java
- Stars
- 237
- Forks
- 195
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 49
Description
Given a method like this:
```java
public static final Class foo(Collection> classes) {
return null;
}
```
with jshell I can do this:
```jshell
jshell> Class x = foo(List.of(double[][].class, Long[][].class));
x ==> null
```
while with eclipse I get this:

Note that for `double[][]` --> `Double[][]` it correctly infers `Number[][]`.
Contributor guide
Assessment
This issue has not been assessed yet.