RFR 8145486: jjs should support documentation key shortcut in interactive mode

Michael Haupt michael.haupt at oracle.com
Wed Dec 16 08:49:05 UTC 2015

Hi Sundar,

very cool. Lower-case thumbs up.

I tested this on the Mac platform, and all the features work, save one little thing. Main.openBrowserForJavaDoc does not seem to handle inner classes correctly. Entering java.util.HashMap.SimpleEntry in the jjs shell and then hitting Shift-Tab will pass the URL http://download.java.net/jdk9/docs/api/java/util/AbstractMap$SimpleEntry.html to the browser, when http://download.java.net/jdk9/docs/api/java/util/AbstractMap.SimpleEntry.html is needed. The $->. conversion needs to be added.



> Am 16.12.2015 um 05:38 schrieb Sundararajan Athijegannathan <sundararajan.athijegannathan at oracle.com>:
> Please review http://cr.openjdk.java.net/~sundar/8145486/ for https://bugs.openjdk.java.net/browse/JDK-8145486
> Note that this enhancement only adds jjs changes to show documentation when available and infrastructure to attach documentation string for JS built-in functions, constructors.
> Actual documentation strings are added only for NativeObject. Adding documentation string for all other built-in functions, constructors will be done in future.
> Thanks,
> -Sundar


Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG, Schiffbauergasse 14 | 14467 Potsdam, Germany
 <http://www.oracle.com/commitment>	Oracle is committed to developing practices and products that help protect the environment

More information about the nashorn-dev mailing list