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

jjs tool of jdk.scripting.nashorn.shell module should not statically depend on java.desktop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • None
    • core-libs
    • None
    • b31
    • generic
    • generic

      jjs tool has java.desktop dependency because of few features. But there many other features that don't require java.desktop at all.

      Features that require java.desktop are:

      * browsing javadoc of a java class or package with an external browser (on shift-tab)

      * load call tab-completion by file chooser dialog box

      * internal swing based built-in editor for "edit()" call

      The last one can be done using jdk.internal.ed dependency alone. No need for java.desktop for that. The first two can be rewritten in script to avoid direct/static java dependency.

      All other features like multi-line editing, command line persistent history, history navigation, tab-completion of expressions, inline JS function documentation (on shift-tab) , editing script by external editor like vi/notepad etc. don't need java.desktop at all. So jjs should just dynamically detect and use java.desktop features when available - otherwise should just disable the above features.

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: