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

jshell <TAB> completion on arrays is incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • tools
    • None
    • b15

      <TAB> completion on array expression in jshell only seems to work for `.length` but not, say, for `.toString()` or `.clone()`.
      So `new int[0].toS`<TAB> won’t complete, and you have to write down `toString()` yourself.

      As arrays extend `j.l.Object` (and implement `j.l.Cloneable` and `j.i.Serializable`, but they don't expose any member), methods in `j.l.Object` should be supported on completion.

            jlahoda Jan Lahoda
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: