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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b84
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: