Attempts to fix build error on JDK6