-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b61
-
x86
-
linux
javax.script.ScriptEngineManager.init(ClassLoader) does its own implementation of searching for engines in META-INF/services/javax.script.ScriptEngineFactory. But this is silly because sun.misc.Service.providers(Class,ClassLoader) already accomplishes the same thing in a standardized way.
Furthermore, the ScriptEngineManager version incorrectly uses the platform default encoding to read these files, whereas UTF-8 is mandated. It may have other minor bugs, I am not sure.
Furthermore, the ScriptEngineManager version incorrectly uses the platform default encoding to read these files, whereas UTF-8 is mandated. It may have other minor bugs, I am not sure.
- relates to
-
JDK-6337504 javadoc comments in ScriptEngineManager should clarify service provider usage
-
- Resolved
-