make example compile on java8