|
options.setExperimentalOption("prefs", Map.of("intl.accept_languages", locale)); |
Map.of() was introduced in JDK 9. The test cases seem to use that. If we maintain strict JDK8 compatibility, this might be wrong. This is rather a question than a bug. And yes, I am fine with going to JDK 11 :)
htmlunit/src/test/java/org/htmlunit/WebDriverTestCase.java
Line 551 in 7fbaf38
Map.of()was introduced in JDK 9. The test cases seem to use that. If we maintain strict JDK8 compatibility, this might be wrong. This is rather a question than a bug. And yes, I am fine with going to JDK 11 :)