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

Overloads that differ in type parameters may be lost

XMLWordPrintable

    • 9
    • b18
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      openjdk 21.0.1 2023-10-17 LTS
      OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
      OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      Methods with same name and different generic type parameter omitted from Method Summary section.

      REGRESSION : Last worked in version 8u401

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      in an interface, define two or more methods with same name and different generic type parameter

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Two methods should be listed up on the Method Summary section.
      ACTUAL -
      Only one is listed.

      ---------- BEGIN SOURCE ----------
      interface Some {

          default <T extends Appendable> T append(final T appendable) {
          }

          default <T extends File> T append(final T file) { // Omitted form the Method Summary section
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            prappo Pavel Rappo (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: