DERBY-5797: AssertionFailedError in functionTests.tests.lang.UpdateStatisticsTest.testDisposableStatsEagerness Backporting from trunk(revision 1347888) into 10.8. The fix was contributed by Kristian.