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

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: tbd_minor
    • Component/s: core-libs
    • Labels:
      None

      Description

      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]).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: