Description
The parameters flag works when configuring the Java version with source and target, eg.
<configuration>
<source>11</source>
<target>11</target>
<parameters>true</parameters>
</configuration>
However, when configuring the Java version with release, as is the convention to use with Java 9+, the parameters flag no longer works (the .class file doesn't contain MethodParameters), eg.
<configuration>
<release>11</release>
<parameters>true</parameters>
</configuration>
To ensure that the issue is not with javac, I've tested running javac with:
javac --source 11 --target 11 -parameters MyClass.java
and
javac --release 11 -parameters MyClass.java
and verified that it works for both (both .class files contain MethodParameters).