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

java.lang.classfile.Signature.ArrayTypeSig.of IAE not thrown for dims > 255

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • core-libs
    • None

      java.lang.classfile.Signature.ArrayTypeSig.of:
      1. System.out.println("ArrayTypeSig: " + Signature.ArrayTypeSig.of(255, Signature.parseFrom("[I"))); -> resulting dimension would be 256 and hence should throw IAE

      2. IAE for dimensions outside of range 1-255 has to be mentioned instead of '> 256'

            asotona Adam Sotona
            pgundarlahal Prashanthram Gundarlahally
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: