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

Redundant array copy in UnsharedNameTable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • tools
    • b93
    • generic
    • windows_xp
    • Not verified

      The UnsharedNameTable.fromUtf8 method does this:
               byte[] bytes = new byte[len];
               System.arraycopy(cs, start, bytes, 0, len);
               n = new NameImpl(this, bytes, index++);
               System.arraycopy(cs, start, n.bytes, 0, len);

      The 2nd arraycopy is unnecessary.

            vromero Vicente Arturo Romero Zaldivar
            jjh James Holmlund (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: