[ 
https://issues.apache.org/jira/browse/CLEREZZA-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913512#action_12913512
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-306:
---------------------------------------------

I coudn't yet reproduce the problem

added 3 lines to testSlash so that it now is a follows:

@Test
        def testSlash = {
                val rNode = new RichGraphNode(node)
                Assert.assertEquals(new PlainLiteralImpl("johny"), 
(rNode/FOAF.nick)(0).getNode)
                Assert.assertEquals(2, (rNode/FOAF.name).length(20))
                Assert.assertEquals(2, (rNode/FOAF.name).length)
                val names: CollectedIter[RichGraphNode] = rNode/FOAF.name
                Assert.assertEquals(2, names.length)
                val stringNames = (for(name <- (rNode/FOAF.name).elements) 
yield {
                        name.toString
                }).toList
                Assert.assertTrue(stringNames.contains("\"Johnathan Guller\""))
                Assert.assertTrue(stringNames.contains("\"John\""))
        }

is your problem reproducible? do you have a concurrency situation?

> ConcurrentModificationException with 
> org.apache.clerezza.rdf.scala.utils.CollectedIter
> --------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-306
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-306
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> CollectedIter lazily exapnds an underlying iterator, if the mGraph from which 
> the iteartor originates from is modified a ConcurrentModificationException 
> occurs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to