[
https://issues.apache.org/jira/browse/IGNITE-12240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996675#comment-16996675
]
Nikolay Izhikov commented on IGNITE-12240:
------------------------------------------
Hello [~chalapathirao]
Look like this ticket is abandoned for a while.
Please, contribute the fix if you want.
> ReadOnlyCollectionView2X fails on iterator.next
> -----------------------------------------------
>
> Key: IGNITE-12240
> URL: https://issues.apache.org/jira/browse/IGNITE-12240
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.7.6
> Reporter: Nikolay Izhikov
> Assignee: kcheng.mvp
> Priority: Major
> Labels: newbie
>
> Simple reproducer below will throw {{NoSuchElementException}}.
> Iterator only works if one call {{hasNext}} before {{next}}.
> {code:java}
> /** */
> @Test
> public void testReadOnlyCollection() throws Exception {
> Collection<String> c1 = Collections.emptyList();
> Collection<String> c2 = Arrays.asList("1");
> ReadOnlyCollectionView2X<String> view = new
> ReadOnlyCollectionView2X<>(c1, c2);
> assertEquals("1", view.iterator().next());
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)