incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ansell <ansell.pe...@gmail.com>
Subject Triple hashcode contract
Date Tue, 22 May 2012 03:22:08 GMT
Is it intentional that the Triple hashcode contract only involves the
subject? I am trying to fix a test error as follows by adding extends
Comparable<Triple> to the Triple interface.

The error is as follows:

java.lang.ClassCastException:
org.apache.clerezza.rdf.core.impl.TripleImpl cannot be cast to
java.lang.Comparable
	at java.util.TreeMap.compare(TreeMap.java:1188)
	at java.util.TreeMap.put(TreeMap.java:531)
	at java.util.TreeSet.add(TreeSet.java:255)
	at org.apache.clerezza.rdf.core.test.TcProviderTest.createTestTripleCollection(TcProviderTest.java:461)
	at org.apache.clerezza.rdf.core.test.TcProviderTest.testGetTriplesGraph(TcProviderTest.java:436)

Cheers,

Peter

Mime
View raw message