Commit 6797789
authored
Do not check for unchecked conversion if target is not parameterized (eclipse-jdt#4286)
Reduce risk of the error
The type X cannot be resolved. It is indirectly referenced from ...
Do so by early exit from TypeBinding.needsUncheckedConversion() before findSuperTypeOriginatingFrom(..) could trigger lookup of more types. If leaf targetType is not parameterized, then the answer is known to be `false`.
Fix eclipse-jdt#42311 parent 0c310d0 commit 6797789
File tree
2 files changed
+47
-1
lines changed- org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup
- org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression
2 files changed
+47
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
1560 | | - | |
| 1560 | + | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | 1563 | | |
| |||
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10142 | 10142 | | |
10143 | 10143 | | |
10144 | 10144 | | |
| 10145 | + | |
| 10146 | + | |
| 10147 | + | |
| 10148 | + | |
| 10149 | + | |
| 10150 | + | |
| 10151 | + | |
| 10152 | + | |
| 10153 | + | |
| 10154 | + | |
| 10155 | + | |
| 10156 | + | |
| 10157 | + | |
| 10158 | + | |
| 10159 | + | |
| 10160 | + | |
| 10161 | + | |
| 10162 | + | |
| 10163 | + | |
| 10164 | + | |
| 10165 | + | |
| 10166 | + | |
| 10167 | + | |
| 10168 | + | |
| 10169 | + | |
| 10170 | + | |
| 10171 | + | |
| 10172 | + | |
| 10173 | + | |
| 10174 | + | |
| 10175 | + | |
| 10176 | + | |
| 10177 | + | |
| 10178 | + | |
| 10179 | + | |
| 10180 | + | |
| 10181 | + | |
| 10182 | + | |
| 10183 | + | |
| 10184 | + | |
| 10185 | + | |
| 10186 | + | |
| 10187 | + | |
| 10188 | + | |
| 10189 | + | |
| 10190 | + | |
10145 | 10191 | | |
0 commit comments