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

DiagnosticCommandImpl::invoke throws not very comprehensive message in case if method exists but signature or parameters are wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-svc
    • None

      DiagnosticCommandImpl::invoke throws NoSuchMethodException even if the method actually exists but parameters are wrong.

      It could be confusing, so it would be better to throw IllegalArgumentException in this case.

            kzhaldyb Kirill Zhaldybin (Inactive)
            kzhaldyb Kirill Zhaldybin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: