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

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

XMLWordPrintable

    • b24

        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),
            };
        }

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

                Created:
                Updated:
                Resolved: