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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 5.0
    • 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]).

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

              Created:
              Updated: