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

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

      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

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

              Created:
              Updated:
              Resolved: