Closed arcanefoam closed 8 years ago
The String representation in the debugger, which uses the iterator, provides the correct representation, so it seems it is perhaps more of a problem of the collection not being reseted properly
This was a bogus behaviour. Not reproducible.
There are some associations that can return an element or a list, e.g. Projects.Active Dictionary Item
In this case, when there is only one selected element, we would expect the returned value to be a collection. However, invoking "MoreItems" on this element returns false and thus the hasNext() method of the collection's iterator returns false. However, in java the iterator of a collection with one element returns true for the same method.
More tests are needed to understand the duplicity of these associations, but for the time being the iterator can take into consideration the case in which the size is 1 an wok properly.