I have committed the patch attached to DERBY-3117. After you sync with
the mainline, you will need to use the Java 5 (or later) compiler to
build Derby. This implements the community's consensus to move to an
advanced compiler, as recorded in the following vote: