Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6330073

ScriptEngineManager.init should use Service.providers (e.g. for UTF-8)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs
    • 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.

            sundar Sundararajan Athijegannathan
            jglick Jesse Glick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: