--- old/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptFunction.java 2015-12-16 15:53:58.397428600 +0530 +++ new/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptFunction.java 2015-12-16 15:53:58.027428100 +0530 @@ -646,6 +646,24 @@ } /** + * Get the documentation for this function + * + * @return the documentation + */ + public final String getDocumentation() { + return data.getDocumentation(); + } + + /** + * Set the documentation for this function + * + * @param doc documentation String for this function + */ + public final void setDocumentation(final String doc) { + data.setDocumentation(doc); + } + + /** * Get the name for this function * * @return the name