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

javax.script.Invocable implementation for nashorn does not return null when matching functions are missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • core-libs
    • None
    • b84
    • generic
    • generic
    • Verified

    Description

      javax.script.Invocable.getInterface methods should return null if the underlying script object does not have functions matching the interface method names. Nashorn returns non-null interface object always. When attempt is made to invoke method on resulting object, user gets UnsupportedOperationException. This is not as per the spec.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: