[#1800] Update compiler for support to java 8
[#1800] Update javadoc to link to Java8
[#1800] Add example for java8