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

j.l.c.MethodTypeDesc spec should contain precise assertions for one parameter's methods

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12, 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:

      Description

      Methods MethodTypeDesc:changeReturnType, ofDescriptor have the ‚Äčassertion: Throws: NullPointerException - if any argument is null. It should be reworded because methods have only one parameter.

      Method j.l.c.MethodHandleDesc:asType - missing assertion:
      Throws NullPointerException - if the argument is null

      Cosmetic issue:
      All assertions of class MethodTypeDesc that define ranges use the syntax
       {[ start, end]} except the method dropParameterTypes that uses [0, parameterCount] for the end parameter i.e. there are missing curly brackets

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vromero Vicente Arturo Romero Zaldivar
                Reporter:
                lkuskov Leonid Kuskov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: