From b3b949008f03e62a719a416c87d05e670a2dd176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=87=E6=9F=AF=E4=BA=BA?= Date: Mon, 13 Mar 2023 13:50:59 +0800 Subject: [PATCH 1/2] set ScriptEngineFactory.getLanguageName return aviator Graal.js return ECMAScript scala return Scala jruby return ruby Luaj return lua Groovy return Groovy BeanShell return BeanShell kotlin return kotlin rhino return javascript Nashorn return ECMAScript jython return python Before Aviator return "A high performance scripting language hosted on the JVM" Now return "aviator" --- .../googlecode/aviator/script/AviatorScriptEngineFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java b/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java index a301d544..280c2daa 100644 --- a/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java +++ b/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java @@ -31,7 +31,7 @@ public class AviatorScriptEngineFactory implements ScriptEngineFactory { static { PARAM_MAP.put(ScriptEngine.ENGINE, "Aviator"); PARAM_MAP.put(ScriptEngine.ENGINE_VERSION, AviatorEvaluator.VERSION); - PARAM_MAP.put(ScriptEngine.LANGUAGE, "A high performance scripting language hosted on the JVM"); + PARAM_MAP.put(ScriptEngine.LANGUAGE, "aviator"); PARAM_MAP.put(ScriptEngine.LANGUAGE_VERSION, AviatorEvaluator.VERSION); } From 6438b17343d964d5898a027c31bbffe780cf74de Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Wed, 22 Mar 2023 22:21:53 +0800 Subject: [PATCH 2/2] fix: script engine language attribute. --- .../googlecode/aviator/script/AviatorScriptEngineFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java b/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java index 280c2daa..33910da7 100644 --- a/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java +++ b/src/main/java/com/googlecode/aviator/script/AviatorScriptEngineFactory.java @@ -31,7 +31,7 @@ public class AviatorScriptEngineFactory implements ScriptEngineFactory { static { PARAM_MAP.put(ScriptEngine.ENGINE, "Aviator"); PARAM_MAP.put(ScriptEngine.ENGINE_VERSION, AviatorEvaluator.VERSION); - PARAM_MAP.put(ScriptEngine.LANGUAGE, "aviator"); + PARAM_MAP.put(ScriptEngine.LANGUAGE, "AviatorScript"); PARAM_MAP.put(ScriptEngine.LANGUAGE_VERSION, AviatorEvaluator.VERSION); }