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

jjs should look for "doc string" property to print documentation on shift-tab

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b100
    • generic
    • generic

      jjs prints documentation for built-in JS functions, java packages and java classes. But, for user defined functions source code is printed for anything else jjs prints "toString" value. This may not be the best documentation. jjs should support __doc__ property on JS objects. i.e., if __doc__ property is defined on the object, jjs should print string value of __doc__ property. This is like docstring in Python ( https://en.wikipedia.org/wiki/Docstring )

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: