You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Peter Ansell <an...@gmail.com> on 2012/05/22 05:22:08 UTC

Triple hashcode contract

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