openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Padilla <f...@alum.mit.edu>
Subject Re: multithreaded, read/write?
Date Fri, 19 Dec 2008 19:48:30 GMT
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..
> 
> 
> 
> 

Mime
View raw message