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

unnecessary generic bound in signature attribute

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_8

      Backports

        Description

        Date: Sun, 22 Feb 2004 15:15:25 -0800
        Wrom: DULHPQQWOYIYZUNNYCGPKYLEJGDGVCJ
        Subject: Signature attribute in class files
        To: <###@###.###>

        I'm updating the software I use to generate the quick-reference section
        in Java in a Nutshell to handle Generics and the other new Java 1.5 syntax.

        As part of this, I've been parsing the Signature attribute of class
        files. I was surprised to discover that unless a type variable has an
        explicit bound, the Signature attribute has java.lang.Object as the
        bound. So my code naively parses the signature converts it to something
        like this:

        public abstract <E extends Object> interface List extends Collection

        It seems to me that including Object as an explicit bound is unnecessary
        and just takes up room in the classfile. Is this a bug that you'll be
        fixing, or is it something that I need to work-around by discarding the
        Object bound?
        ###@###.### 2004-11-10 03:38:59 GMT

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vromero Vicente Arturo Romero Zaldivar
                  Reporter:
                  gafter Neal Gafter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: