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

Types.isSubsignature does not consider method names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • core-libs
    • None

      From JLS 8.4.2. "Method Signature" it follows that a subsignature test should take into account method names.

      Neither javax.lang.model.type.ExecutableType carries name information, nor Types.isSubsignature accepts it. As a result, the test reports false positives.

      If it's no longer possible to change this API, then the API should clearly indicate its divergence from JLS.

            darcy Joe Darcy
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: