Revert "luni: fix build with Java 8"

This reverts commit 6e05424bacc3ead699aaf6cb99aec6cdbeebf3c9.