Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-237

Value.setAliases does not copy alias strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.7
    • 1.0.0
    • lib
    • None

    Description

      The org.apache.openjpa.lib.conf.Value.setAliases method does not copy the array of strings passed as a parameter. As a result, later operations on the Value object's aliases can change the array that the caller is using. This method should be pass by value rather than by reference – in other words, the method should copy the array.

      Attachments

        1. Value.diff
          3 kB
          David Ezzio

        Activity

          People

            Unassigned Unassigned
            dezzio David Ezzio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: