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

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

    XMLWordPrintable

Details

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

    Description

      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}

      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: