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

jshell shows duplicated signatures of javap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 21
    • tools
    • None
    • 21
    • b14

    Description

      With TOOLING loaded, typing `javap(` followed by TAB yields:

      Actual:
      ```
      >jshell TOOLING
      | Welcome to JShell -- Version 21
      | For an introduction type: /help intro
      jshell> javap(
      Signatures:
      void javap(Class<?> type) throws Exception
      void javap(String...)
      void javap(Class<?> type) throws Exception
      void javap(String...)
      ```

      Expected:
      ```
      >jshell TOOLING
      | Welcome to JShell -- Version 21
      | For an introduction type: /help intro
      jshell> javap(
      Signatures:
      void javap(Class<?> type) throws Exception
      void javap(String...)
      ```

      Signatures of other methods defined in the TOOLING script are, as expected, only shown once.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              cstein Christian Stein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: