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

jshell tool: Tab completion on import with custom classpath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 10
    • 9
    • tools
    • os_x

      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

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: