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

Wrong generic type parameter in serialized form javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • None
    • tools
    • None

      If you run javadoc on the file below, the regular javadoc in Fields.html has "Class<E>" as expected, but serialized-form.html#bug.Fields has unexpected "java.lang.Class<T extends java.lang.Object> someClass"

      It seems like it gets the "T" (instead of the correct "E") from Class.java's type parameter.
      ---
      package bug;

      public class Fields<E> implements java.io.Serializable {
          /** Some doc. */
          public Class<E> someClass;
      }

            ksrini Kumar Srinivasan
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: