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

JShell tool: New command: /imports, /i which show the list of imported packages or classes, etc...

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9-repo-kulla
    • tools
    • b93
    • generic
    • generic
    • Verified

      I propose the new command, /imports and /i, to list imported packages or classes, etc...

      -> import java.util.stream.*
      import java.util.stream.*

      -> import java.util.stream.Stream
      import java.util.stream.Stream

      -> import static java.lang.Math.PI
      import static java.lang.Math.PI

      -> import static java.lang.Math.*
      import static java.lang.Math.*

      -> /imports
      /imports
      | import java.util.*
      | import java.io.*
      | import java.math.*
      | import java.net.*
      | import java.util.concurrent.*
      | import java.util.prefs.*
      | import java.util.regex.*
      | import java.util.stream.*
      | import java.util.stream.Stream
      | import static java.lang.Math.PI
      | import static java.lang.Math.*

            shinyafox Shinya Yoshida
            shinyafox Shinya Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: