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

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

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      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.
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                webbuggrp Webbug Group
                Reviewed By:
                Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: