incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür (JIRA) <j...@apache.org>
Subject [jira] Commented: (CLEREZZA-306) ConcurrentModificationException with org.apache.clerezza.rdf.scala.utils.CollectedIter
Date Wed, 22 Sep 2010 12:20:32 GMT

    [ 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.


Mime
View raw message