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

Redundant array copy in UnsharedNameTable

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: