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

ArrayType prints element type post order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8, 9
    • tools
    • b62
    • generic
    • generic
    • Verified

        ArrayType.toString() looks like:


                public String toString() {
                    StringBuilder sb = new StringBuilder();
                    sb.append(elemtype);
                    appendAnnotationsString(sb, true);
                    sb.append("[]");
                    return sb.toString();
                }

        This prints the component type first, but then the potentially nested array types in reverse order.

              alundblad Andreas Lundblad (Inactive)
              ksrini Kumar Srinivasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: