Ignore:
Timestamp:
2018-01-16T00:28:24+01:00 (2 years ago)
Author:
Don-vip
Message:

see #14097, see #15783 - robustness to situations where JavaScript engine cannot be retrieved, for whatever reason

File:
1 edited

Legend:

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

    r13298 r13331  
    1212import javax.script.Invocable;
    1313import javax.script.ScriptEngine;
    14 import javax.script.ScriptEngineManager;
    1514import javax.script.ScriptException;
    1615
     
    2322import org.openstreetmap.josm.tools.LanguageInfo;
    2423import org.openstreetmap.josm.tools.Logging;
     24import org.openstreetmap.josm.tools.Utils;
    2525
    2626/**
     
    3636     * Javascript engine
    3737     */
    38     public static final ScriptEngine ENGINE = new ScriptEngineManager(null).getEngineByName("JavaScript");
     38    public static final ScriptEngine ENGINE = Utils.getJavaScriptEngine();
    3939
    4040    /**
Note: See TracChangeset for help on using the changeset viewer.