ITS#4501 Update code base to Java8.
The current code base can only be built using JDK 1.4 (for which extended support ended a decade ago) but these changes will make it possible to build it using JDK 8 (for which there still is support). This is the minimal version update possible to make the code base build with a still supported JDK.