NXP-13570: support Java 8