db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel" <ar...@code-au-lait.de>
Subject [OJB test failures] some really nasty bugs
Date Wed, 19 Feb 2003 11:31:50 GMT
Hi all,

I add some new test cases posted by Users (thanks Charles, Oliver and
all I forget)
and do some modifications to point out the problems (I hope so;-)).

1. UserTestCases
Test testImplicitLocking() fail when implicit locking was set to
the test pass when implicit locking was 'true'.
The test change the 'useImplicitLocking' property to 'false'
to simulate the situation.

2. FieldConversionForeignKeyTest/ConvertedKeyReferenceTest
This was the really nasty bug!
Both test cases use field conversions. It seems that in some cases
PK fields are not converted.

For example in StatementManager#bindSelect(...) method, the given
Identity object seems to wrap unconverted pk values, when I do a
field conversion in this method all seems ok, but now in some cases
the field conversion was done twice (ConvertedKeyReferenceTest)
on the same values. This is tragic when using a field conversion
like TestIntToIntConverter.

I think one part of the problem could be Identity, because it is
possible to make Identity instances with converted pk values
and without!
new Identity(Object objectToIdentitify, PersistenceBroker targetBroker)
--> without conversion
new Identity(Class aClass, Object[] CONVERTEDpkValues)
--> with converted pk valuse

Any suggestions?


View raw message