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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 13
    • 12, 13
    • core-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved: