Fix a build error related with NPN version and JDK8