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

specification of j.l.c.MethodTypeDesc::of should document better the exceptions thrown

XMLWordPrintable

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

      The method MethodTypeDesc of(ClassDesc returnDesc, ClassDesc... paramDescs) does not follow to the expected assertion that is missed​:
      @throws IllegalArgumentException if any element of {@code paramDescs} is a {@link ClassDesc} for {@code void}

      Also the current assertion for NPE should be:
      @throws NullPointerException if any argument or its contents are {@code null}

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

              Created:
              Updated:
              Resolved: