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

jshell shows duplicated signatures of javap

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: