Hi Markus, thanks for the prompt reply. I gave it another try with Java 11 and to my surprise it is working there. After having a closer look at the Java doc it turns out that the change in return value type from Buffer to ByteBuffer is only present in Java 9 and has been reverted in 10 again. While I don't understand why it is working with Java 11 but not with 1.7 I am happy to see that it is. I was afraid it would be broken for all JDKs when compiled against Java 9.
Thanks again and best wishes, Martin.