DERBY-6147: ClosedObjectTest fails on the 10.9 branch when running on Java 8

Merged revision 1464367 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/branches/10.9@1464373 13f79535-47bb-0310-9956-ffa450edef68