Commit 225d4ba
committed
ModuleService: be smart about maps passed to run
This hack works around an issue where some script languages,
notably Jython but potentially others too, invoke the wrong run
method when called with a map. The Object... varargs method is
chosen instead of the Map method, with the map being passed as
the sole element of the object array. The code below detects
this situation, propagating the map entries into the new map.
Thanks to Robert Haase for the suggestion.
Closes scijava/scripting-jython#8.1 parent e13d21f commit 225d4ba
1 file changed
+20
-0
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
415 | 435 | | |
416 | 436 | | |
417 | 437 | | |
| |||
0 commit comments