So, I'm confused.. aren't the unit tests in TestQuery.java being run?
There is a test in there that should test for ordering queries, which
should have been failing before and should be failing now..
Pinaki Poddar wrote:
Hi,
Can you cook up a small test case that demonstrates this ClassCast
failure?
It looks like PCPath extends CandidatePath, but that fails:
around CandidatePath, line 139
try {
// get the specified field value and switch candidate
Traversal traversal = (Traversal) action;
candidate = sm.fetchField(traversal.field.getIndex(),
true);
} finally {
The _actions list contains PCPath$Action, which does not extend
Traversal, so we get a class-cast exception here in the code, and thus
the "getOrderingValue" method called by
OrderingMergedResultObjectProvider returns null.. thus it does not get
any of the appropriate field values to run it's sorting against.. thus
everything remains unsorted..