[UIMA-5905] workaround change in signature between Java 8 and 11, for 2 methods in ByteBuffer, to enable compiling on Java 11 but running on Java 8.