Attachments (0)
Change History (11)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
https://lists.openstreetmap.org/pipermail/josm-dev/2020-March/008285.html
…
Nashorn was in use for three features of JOSM core:
…
- JavaScript API of JOSM configuration XML files, Help/Preferences/ImportExport#JavaScriptAPI
…
… we don't see a viable alternative. We plan to remove this
feature with the next JOSM release unless someone steps up with a
killer-user-case and migration plan
comment:3 by , 5 years ago
comment:4 by , 5 years ago
Summary: | Migrate PreferencesUtils#readPrefsFromJS to non-JavaScript/non-Nashorn → Remove PreferencesUtils#readPrefsFromJS due to Nashorn removal |
---|
comment:5 by , 5 years ago
Milestone: | 20.03 → 20.04 |
---|
Descoping to release 20.03 early to address #18798, as we receive a lot of duplicates, and to allow some time for feedback, even if I think nobody will show up.
follow-up: 7 comment:6 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Removing PreferencesUtils#readPrefsFromJS
is the easy part. The ScriptEngine, however, is heavily used via CustomConfigurator.XMLCommandProcessor#evalVars
in order to evaluate various strings/values, such as Help/Preferences/ImportExport#Variablesmessageboxesandaskinguser
What should we do?
- Rewrite
evalVars
to only lookup variables, but not compute values? - Rewrite
evalVars
to mimic the most important computations (such as math and string computations)? - Rewrite
evalVars
to use MapCSS functions? - Use https://github.com/beanshell/beanshell or a similar library?
- …?
comment:7 by , 5 years ago
Replying to simon04:
What should we do?
- Rewrite
evalVars
to only lookup variables, but not compute values?
I chose this variant.
Or simply drop it. It's here since :ticket:4421#comment:34 but I don't think it's being used much. We should ask on @josm-dev