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

Incorrect printing of the generic method declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8, 9
    • tools
    • 8.0 b129, 9 dev

      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);
      ...........

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

              Created:
              Updated:
              Resolved: