Java adapters with class-level overrides should preserve variable arity constructors

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b71
    • generic
    • generic

        If a class has a variable arity constructor, e.g. VarArgClass(String... x), and we create a class-level Java adapter for it using Java.extend(VarArgClass, { ... }), the variable constructor in the adapter should also be variable arity.

        We lose variable arity constructors for adapters with instance-level overrides as we need to pass an extra trailing argument in the constructor, but there's no reason to lose them for class-level overrides.

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

                Created:
                Updated:
                Resolved: