[jira] [Closed] (COLLECTIONS-657) "union" method is resulting in data loss
[ https://issues.apache.org/jira/browse/COLLECTIONS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Igor Savin closed COLLECTIONS-657. -- Resolution: Invalid > "union" method is resulting in data loss > > > Key: COLLECTIONS-657 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-657 > Project: Commons Collections > Issue Type: Bug >Affects Versions: 4.1 >Reporter: Igor Savin >Priority: Critical > > Create 2 instances of StringReader from strings (1 and 2), put them into a > list A. > Create empty list B. > Call CollectionUtils.union(A, B); > Expected result: [1, 2] > Actual result: [1, 1]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (COLLECTIONS-657) "union" method is resulting in data loss
[ https://issues.apache.org/jira/browse/COLLECTIONS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172149#comment-16172149 ] Igor Savin commented on COLLECTIONS-657: After digging in further to create a reproduction test, figured out it's actually an issue with how equals is implemented in Drools library. > "union" method is resulting in data loss > > > Key: COLLECTIONS-657 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-657 > Project: Commons Collections > Issue Type: Bug >Affects Versions: 4.1 >Reporter: Igor Savin >Priority: Critical > > Create 2 instances of StringReader from strings (1 and 2), put them into a > list A. > Create empty list B. > Call CollectionUtils.union(A, B); > Expected result: [1, 2] > Actual result: [1, 1]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (COLLECTIONS-657) "union" method is resulting in data loss
Igor Savin created COLLECTIONS-657: -- Summary: "union" method is resulting in data loss Key: COLLECTIONS-657 URL: https://issues.apache.org/jira/browse/COLLECTIONS-657 Project: Commons Collections Issue Type: Bug Affects Versions: 4.1 Reporter: Igor Savin Priority: Critical Create 2 instances of StringReader from strings (1 and 2), put them into a list A. Create empty list B. Call CollectionUtils.union(A, B); Expected result: [1, 2] Actual result: [1, 1]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (CODEC-191) Encoding data using Base64OutputStream omits part of the input in some cases
Igor Savin created CODEC-191: Summary: Encoding data using Base64OutputStream omits part of the input in some cases Key: CODEC-191 URL: https://issues.apache.org/jira/browse/CODEC-191 Project: Commons Codec Issue Type: Bug Affects Versions: 1.9 Environment: Java 7 Reporter: Igor Savin Priority: Critical In case Base64OutputStream is used for encoding byte array produced from some strings, an incomplete result (that is inconsistent with both other Base64 implementations and Base64InputStream implementation) is produced. It appears that "s" character is getting omitted if it's in the end of the string to be encoded; there may be other cases as well. Here is the test that allows to reproduce the problem: http://kiberion.net/kibertoad/temp/codec-base64-error.zip -- This message was sent by Atlassian JIRA (v6.3.4#6332)