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

Incorrect printing of the generic method declaration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8, 9
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Environment:

      8.0 b129, 9 dev

      Description

      Get javap's output for class that contains generic methods, e.g.
      public class Sample {
          public <T> T m1(T a) {
              return null;
          }
      }

      Method's declaration is printed incorrectly -redundant printing of extends java.lang.Object superclass

      For verbose mode:
      ...........
        public <T extends java.lang.Object> T m1(T);
      ...........

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              ogb Oleg Barbashov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: