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

Method::isVarargs of dynamic proxy generated method should match the proxy interface method

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 16
    • core-libs
    • None
    • behavioral
    • low
    • Hide
      `Method::isVarArgs` of a dynamic proxy method may return `true` if the method declared in a proxy interface has `ACC_VARARGS` flag set. In previous releases, all dynamic proxy methods do not have `ACC_VARARGS` flag set. No impact to existing applications invoking such methods at runtime. This compatibility risk of this behavioral change is expected to be low.
      Show
      `Method::isVarArgs` of a dynamic proxy method may return `true` if the method declared in a proxy interface has `ACC_VARARGS` flag set. In previous releases, all dynamic proxy methods do not have `ACC_VARARGS` flag set. No impact to existing applications invoking such methods at runtime. This compatibility risk of this behavioral change is expected to be low.
    • Java API
    • SE

      Summary

      Method::isVarargs of a dynamic proxy generated method should match the proxy interface method.

      Problem

      ACC_VARARGS flag of all dynamic proxy generated methods are always not set even if the method declared in a proxy interface takes a variable number of arguments set.

      Solution

      If ACC_VARARGS flag of a proxy interface method is set, the generated method in the proxy class has the ACC_VARARGS flag set.
      If there are two or more proxy interfaces declaring such a method, it matches the method declared in the first proxy interface.

      Specification

      This CSR documents a behavioral change. No spec change.

            mchung Mandy Chung (Inactive)
            webbuggrp Webbug Group
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: