Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-472

AbstractConverter.convert does not work properly on Object array

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.9.2
    • None
    • None

    Description

      inside AbstractConverter.convert when convertArray method get called, if the object is an object array, only the first element of that array will return because of this block of code :
      return Array.get(value, 0)

      this willl leads data loss when the user is trying to convert an object array so the better solution is to throw an exception that maybe this method does not support object array or find a way to perform the convertion even for an object array

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            neel Neel Natu

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment