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

jshell tool: /methods signature confusing/non-standard format

XMLWordPrintable

    • b157
    • Verified

        After defining a method

        int square(int x)

        I used the command /methods. The output is

        jshell> /methods
        | square (int)int

        I’d show the method’s first line, just as Shift Tab does—that is

        returnType methodName(parameterList)

        All existing programmers already understand it. The current output will just be confusing to people learning the language.


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

                Created:
                Updated:
                Resolved: