Commit fcaeab6
committed
ClojureBindings: avoid warnings in map population
Calling the Var.intern method dumps a warning to stderr
when an already-existing variable is requested.
I did not study the code extremely carefully, but it seems like
internally, Clojure discovers an existing variable, decides to overwrite
it with a different variable object for some reason, and then warns that
it has done so. But this phenomenon apparently occurs only once.
In any case, the workaround is simply to avoid calling Var.intern,
in favor of Namespace.getMappings().valAt(Symbol) directly.1 parent 043982b commit fcaeab6
File tree
1 file changed
+10
-3
lines changed- src/main/java/org/scijava/plugins/scripting/clojure
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
0 commit comments