c.s.j.u.jar.pack.ConstantPool.Index does not correctly implement List.toArray()

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • None

      The List implementation com.sun.java.util.jar.pack.ConstantPool.Index does not correctly implement List.toArray:

              public Entry[] toArray() {
                  return toArray(new Entry[size()]);
              }

      The result of toArray() should be equivalent to toArray(new Object[0]).

            Assignee:
            Unassigned
            Reporter:
            Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: