Re: Planned removal of JavaScript API of JOSM configuration XML files

2020-03-05 Thread Vincent Privat
For reference, the up-to-date link for [1] is rather
https://openjdk.java.net/jeps/372

Le jeu. 5 mars 2020 à 19:53, Simon Legner  a écrit :

> 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
>
>


Planned removal of JavaScript API of JOSM configuration XML files

2020-03-05 Thread Simon Legner
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