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

JavaAdapterFactory generated proxy classes should take extra constructor arguments at the end

    XMLWordPrintable

Details

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

    Description

      Since "new X(a, b) {...}" is equivalent to "new X(a, b, {...})", we need to generate adapter classes used for subclassing/implementing Java types in Nashorn in such a manner that the adapter class constructors take the ScriptObject/ScriptFunction arguments as their last argument, not their first argument (as they do now). Note that this will make it impossible to generate variable arity constructors - a variable arity constructor in the extended class will appear as a fixed-arity constructor taking an array in the adapter subclass.

      Attachments

        Activity

          People

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: