db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@jpox.org>
Subject QueryTest issue
Date Thu, 24 Nov 2005 11:20:21 GMT
There seems to have been some change in QueryTest that now causes some tests 
to fail that previously passed.

These all expect an exception to be thrown and JPOX kindly obliges with 
JDOUserException, but then the test is marked as an error - seemingly because 
the exception is thrown when the query is constructed (passing in the single 
string query, which has errors), and the test is expecting an error at 
compile time. 

JPOX policy is to throw the exception at the earliest point possible, which in 
this case is at the call of PM.newQuery() (since the user has used invalid 
single-string syntax). Why wait til compile time and tell them then? Was this 
change to QueryTest intentional ?


View raw message