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

-Xdoclint of array serialField gives "error: array type not allowed here"

    Details

    • Subcomponent:
    • Resolved In Build:
      b24

      Backports

        Description

        With jdk-12-ea+22 (but not jdk-12-ea+21) I see:

        javac -Xdoclint:all ArraySerialField.java
        ArraySerialField.java:3: error: array type not allowed here
            /** @serialField longs Long[] the longs */

        ---

        /** Obdoc. */
        public class ArraySerialField {
            /** @serialField longs Long[] the longs */
            private static final java.io.ObjectStreamField[] serialPersistentFields = {
                new java.io.ObjectStreamField("longs", Long[].class),
            };
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hannesw Hannes Wallnoefer
                  Reporter:
                  martin Martin Buchholz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: