|
suites.All and derbyall ran without failures with Solaris 10 and Sun JDK 1.6.
Patch look good to me. I only did code inspection, since I am not sure which test
best exercises this code. The skip semantics in Java input streams is a bit broken (it may return 0 bytes skipped more or less at will and still be compliant, cf. http://java.sun.com/javase/6/docs/api/java/io/InputStream.html#skip(long)), but I see you have coded it safely here, maybe it would be a good idea to make a utility method for skipping input streams ("skipFully"). +1 Committed revision 1b of the patch, in which the only change over 1a is the addition of an else-block, to trunk with revision 675169.
Thanks for the review Dag. I agree the InputStream.skip contract is somewhat difficult. We already have a utility class for UTF8 streams (iapi.util.UTF8Util), so adding one for generic InputStreams is a good idea. I created 'derby-3768-2a-misc_fixes.diff' contains a set of small fixes:
- JavaDoc improvements - set locator value explicitly to indicate default value (must not be a valid locator) - renamed 'myLength' to 'streamLength' - keep variables 'materialized' and 'streamLength' in sync - throw exception in second constructor (mistakenly swallowed) - only clear LOB mapping if a mapping has been created Awaiting test run completion. Patch ready for review. suites.All and derbyall ran without failures.
Committed 'derby-3768-2a-misc_fixes.diff' to trunk with revision 676571.
I plan to backport these changes, and some related performance issues, to 10.4. Backported patches 1b and 2a to 10.4 with revision 677578.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Patch ready for review.