You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org> on 2011/11/17 18:02:51 UTC
[jira] [Commented] (MAHOUT-889) size() returns wrong value (10) on
freshly instantiated ObjectArrayList.
[ https://issues.apache.org/jira/browse/MAHOUT-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152139#comment-13152139 ]
Ted Dunning commented on MAHOUT-889:
------------------------------------
Good catch!
Can you code up your example as a unit test?
A nice simple thing like this is a great way to get started on contributing.
> size() returns wrong value (10) on freshly instantiated ObjectArrayList.
> ------------------------------------------------------------------------
>
> Key: MAHOUT-889
> URL: https://issues.apache.org/jira/browse/MAHOUT-889
> Project: Mahout
> Issue Type: Bug
> Components: collections
> Affects Versions: collections-1.0
> Reporter: Claudio Martella
> Assignee: Benson Margulies
>
> ObjectArrayList returns 10 for a freshly instantiated object:
> {code}
> ObjectArrayList<String> list = new ObjectArrayList<String>();
> System.out.println(list.size());
> {code}
> prints 10.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira