[
https://issues.apache.org/jira/browse/MAHOUT-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13726996#comment-13726996
]
Hudson commented on MAHOUT-1301:
--------------------------------
FAILURE: Integrated in Mahout-Quality #2180 (See
[https://builds.apache.org/job/Mahout-Quality/2180/])
MAHOUT-1301: toString() method of SequentialAccessSparseVector has excess comma
at the end (smarthi: rev 1509441)
* /mahout/trunk/CHANGELOG
MAHOUT-1301: toString() method of SequentialAccessSparseVector has excess
comma at the end (smarthi: rev 1509439)
* /mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java
* /mahout/trunk/math/src/main/java/org/apache/mahout/math/DenseVector.java
*
/mahout/trunk/math/src/main/java/org/apache/mahout/math/RandomAccessSparseVector.java
*
/mahout/trunk/math/src/main/java/org/apache/mahout/math/SequentialAccessSparseVector.java
*
/mahout/trunk/math/src/test/java/org/apache/mahout/math/AbstractVectorTest.java
* /mahout/trunk/math/src/test/java/org/apache/mahout/math/TestDenseVector.java
*
/mahout/trunk/math/src/test/java/org/apache/mahout/math/TestRandomAccessSparseVector.java
*
/mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSequentialAccessSparseVector.java
> toString() method of SequentialAccessSparseVector has excess comma at the end
> -----------------------------------------------------------------------------
>
> Key: MAHOUT-1301
> URL: https://issues.apache.org/jira/browse/MAHOUT-1301
> Project: Mahout
> Issue Type: Bug
> Components: Math
> Affects Versions: 0.8
> Reporter: Alexander Senov
> Assignee: Suneel Marthi
> Priority: Trivial
> Labels: patch
> Fix For: 0.9
>
> Attachments: MAHOUT-1301.patch
>
>
> Realization of SequentialAccessSparseVector toString() method had changed in
> MAHOUT-1259 patch. Unfortunately, that patch introduced new bug: output of
> the toString() method had been changed - extra comma added at the end of the
> string
> Example:
> Consider following sparse vector
> {code:java}
> Vector v = new SequentialAccessSparseVector(capacity);
> v.set(1, 0.1);
> v.set(3, 0.3);
> {code}
> In 0.7 v.toString() returns following string:
> {code:java}
> {1:0.1,3:0.3}
> {code}
> but in 0.8 it returns
> {code:java}
> {1:0.1,3:0.3,}
> {code}
> As you can see, there is extra comma at the end of the string.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira