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

jshell tool: Tab completion on import with custom classpath

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • OS:
      os_x

      Description

      I noticed that if I extend the JShell classpath using the --class-path
      startup argument, I can import from packages in the JAR, but do not get
      auto-completion for the import package names.

      For example, using
      jshell --class-path
      ~/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar

      if I type
      import com.<TAB>

      I get
      apple oracle sun

      but I can type
      import com.google.common.base.*

      so, "google" is not an auto-complete option following "com."

      Glad to report this elsewhere if you prefer.

      Thanks in advance,
      Patrick

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                rfield Robert Field
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: