Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-612

System::arraycopy weird tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.9.5
    • None
    • Decaf
    • None

    Description

      Hi,

      I was reading the source code especially System::arraycopy family methods :

      https://git-wip-us.apache.org/repos/asf?p=activemq-cpp.git;a=blob;f=activemq-cpp/src/main/decaf/lang/System.cpp;h=199dd660ca58a23862e93109fa9827444728bf13;hb=HEAD#l120

      and was wonderined if :

      • Testing twice src was intentional since I suppose it should be dest as second test for example ?
      • Should not it be always memmove since src and dest can still overlap ?

      Regards.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            devnexen David Carlier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: