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

Global.initConstructor and ScriptFunction.getPrototype(Object) can have stricter types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b28
    • generic
    • generic

        ScriptFunction.getPrototype(Object) could be ScriptFunction.getPrototype(ScriptFunction). Also, Global.initConstructor could use generics to return ScriptObject or ScriptFunction to avoid explicit casts at call.

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

                Created:
                Updated:
                Resolved: