Recorder: wrong filters rendered for Java 17


I am using Gatling 3.7.3 on Java 17.
I have recorded the test scenario. The following code got generated by the Gatling with triple quotes and it is giving the error . I noticed that there are no triple quotes for Java 8 and 11.

private HttpProtocolBuilder httpProtocol = http
.inferHtmlResources(AllowList(), DenyList("""..js""", “”"..css""", “”"..gif""", “”"..jpeg""", “”"..jpg""", “”"..ico""", “”"..woff""", “”"..woff2""", “”"..(t|o)tf""", “”"..png""", “”""""))
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0”);


That’s because you have Java 8 or 11 configured in the tool that’s reporting this error instead of Java 17.
If your tool is IntelliJ, you have to change the Java compiler configured on your project.