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

jshell tool: Completion for /set exports or /retain exports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      jshell> /set
      editor exports feedback format mode prompt start truncation

      jshell> /set exports j
      java.base java.compact1 java.compact2 java.compact3 java.compiler java.datatransfer
      java.desktop java.httpclient java.instrument java.logging java.management java.naming
      java.prefs java.rmi java.scripting java.se java.security.jgss java.security.sasl
      java.smartcardio java.sql java.sql.rowset java.xml java.xml.crypto jdk.accessibility
      jdk.attach jdk.charsets jdk.compiler jdk.crypto.ec jdk.crypto.pkcs11 jdk.dynalink
      jdk.httpserver jdk.internal.le jdk.internal.opt jdk.jartool jdk.javadoc jdk.jconsole
      jdk.jdeps jdk.jdi jdk.jlink jdk.jshell jdk.jsobject jdk.jstatd
      jdk.jvmstat jdk.localedata jdk.management jdk.naming.dns jdk.naming.rmi jdk.net
      jdk.scripting.nashorn jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.vm.ci
      jdk.xml.dom jdk.zipfs

      jshell> /set exports jdk.jshell jdk.
      jdk.internal.jshell.debug jdk.internal.jshell.tool jdk.internal.jshell.tool.resources jdk.jshell
      jdk.jshell.execution jdk.jshell.execution.code jdk.jshell.execution.extention jdk.jshell.resources
      jdk.jshell.spi

      jshell> /set exports jdk.jshell jdk.


      test cases:

                      a -> assertCompletionContains(a, "/set exports |", false, "java.base ", "jdk.jconsole "),
                      a -> assertCompletionContains(a, "/set exports java.base |", false, "java.util", "jdk.internal.misc"),
                      a -> assertCompletionContains(a, "/set ex jdk.jconsole |", false, "sun.tools.jconsole"),
                      a -> assertCompletionContains(a, "/set ex jdk.jshell jdk.in|", false, "jdk.internal.jshell.tool"),
                      a -> assertCompletionContains(a, "/set ex jdk.jconsole |", false, "sun.tools.jconsole"),
                      a -> assertCompletion(a, "/set ex not.found |", false),


                      a -> assertCompletionContains(a, "/retain exports |", false, "java.base ", "jdk.jconsole "),
                      a -> assertCompletionContains(a, "/retain exports java.base |", false, "java.util", "jdk.internal.misc"),
                      a -> assertCompletionContains(a, "/retain ex jdk.jconsole |", false, "sun.tools.jconsole"),
                      a -> assertCompletionContains(a, "/retain ex jdk.jshell jdk.in|", false, "jdk.internal.jshell.tool"),
                      a -> assertCompletion(a, "/retain ex not.found |", false),

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shinyafox Shinya Yoshida
              Reporter:
              shinyafox Shinya Yoshida
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: