Planned removal of JavaScript API of JOSM configuration XML files

Simon Legner simon.legner at gmail.com
Thu Mar 5 18:52:15 UTC 2020


Hi all,

due to the planned removal of the JavaScript engine Nashorn from Java
[1], we have to take action. Nashorn was in use for three features of
JOSM core:
1. opening_hours validator based on opening_hours.js [2]
2. overpass-wizard (in download dialog) [3]
3. JavaScript API of JOSM configuration XML files [4]

Item 1 has been resolved by migrating to OpeningHoursParser written by
Simon Poole for Vespucci. [5]
For item 2, we plan to use a hosted service (likely on the JOSM
server) for turning user input into Overpass Queries. [6]
For item 3, 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

Thanks for reading and happy mapping,
Simon (simon04)

[1] https://openjdk.java.net/jeps/335
[2] https://github.com/opening-hours/opening_hours.js
[3] https://josm.openstreetmap.de/wiki/Help/Action/Download#DownloadfromOverpassAPI
[4] https://josm.openstreetmap.de/wiki/Help/Preferences/ImportExport#JavaScriptAPI
[5] https://josm.openstreetmap.de/ticket/18140
[6] https://josm.openstreetmap.de/ticket/18164
[7] https://josm.openstreetmap.de/ticket/18830



More information about the josm-dev mailing list