Repository navigation
Commit 8ea5d75
committed
RSMR: add defensive exception guard
IllegalStateException can come back from isAssignable when there's an
unmatched type param in the base type (at least).
We don't need to stop the op search in this case, just move on from that
particular candidate.
Other solutions would be to return false instead of throwing that
exception, in Types.isAssignable. We could also catch any exception and
not just IllegalState. But this seemed like the most minimal change that
would not affect any other code path that might rely on exceptions being
thrown.1 parent dcd0f69 commit 8ea5d75
1 file changed
Lines changed: 11 additions & 9 deletions
File tree
- scijava/scijava-ops-engine/src/main/java/org/scijava/ops/engine/matcher/impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
310 | 310 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| |||
0 commit comments