Changeset 13268 in josm


Ignore:
Timestamp:
2018-01-01T19:16:32+01:00 (2 weeks ago)
Author:
Don-vip
Message:

see #11924, see #14097 - ensure JavaScript engine will always be found with java 9

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java

    r13147 r13268  
    3636     * Javascript engine
    3737     */
    38     public static final ScriptEngine ENGINE = new ScriptEngineManager().getEngineByName("JavaScript");
     38    public static final ScriptEngine ENGINE = new ScriptEngineManager(null).getEngineByName("JavaScript");
    3939
    4040    /**
  • trunk/src/org/openstreetmap/josm/gui/io/CustomConfigurator.java

    r13204 r13268  
    421421                this.mainPrefs = mainPrefs;
    422422                PreferencesUtils.resetLog();
    423                 engine = new ScriptEngineManager().getEngineByName("JavaScript");
     423                engine = new ScriptEngineManager(null).getEngineByName("JavaScript");
    424424                engine.eval("API={}; API.pref={}; API.fragments={};");
    425425
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r12627 r13268  
    2222
    2323    private static OverpassTurboQueryWizard instance;
    24     private final ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript");
     24    private final ScriptEngine engine = new ScriptEngineManager(null).getEngineByName("JavaScript");
    2525
    2626    /**
Note: See TracChangeset for help on using the changeset viewer.