Hello, everyone!
I’m developing an extention using Java 17 as my main SDK in Netbeans. I’ve configured my pom.xml to use Java 11, since I’m using Map.of() in this extention. When I’m compiling it, I’m not sure if the bytecode is correctly versioned to Java 11. I tried changing the main SDK to Temurin 11, but that generates the error bellow:
symbol: method of(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
location: interface java.util.Map
As far as I’m concerned, Java 11 do have Map.of() method. So I’m I don’t know why it complains. Using JDK 17 and setting the pom.xml to Java to 11 compiles, as I mentioned before, but then, I’m not sure if the generated bytecode won’t conflict with the rest of Keycloak libs and system.
Long story short: is my bytecode in Java 11 or not?
Keycloak version is 20.0.2 on a container. Image used is from quay.io/keycloak/.
Cheers and thanks in advance!