build: Detect JDK 1.7 and 1.8
build: Use -Xdoclint:none with JDK 1.8
Fix casting issue when building with Java8
Remove compile argument added by Roger.
fix declaration of ConcurrentHashMap.
Merge pull request #2976 from jburel/jdk1.8-nobootclass-dev_5_0

Jdk1.8 nobootclass dev 5 0