The compilation environment runs with java8 and from what I understood it also creates java8 bytecode, but the runtime is using JDK 11.
It's best if you set up your local environment the same way. I hope that you'll be able to use Java11 features soon.