Open
Description
Error
The enable-preview tag that has been added using extension quick fix is getting duplicated on subsequent operations such as run main, create tests etc
Steps to Reproduce
- Create an new Maven project or use an existing one
- Use a preview feature, If you are using jdk22 you can use the below code
public class Test6 {
Test6(){
int i = 1;
super();
}
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
- Use QuickAction Enable Preview to add CompilerArgs to your pom file
- Now Run Main or Create Tests to see another enable preview arg added to your pom file
- It only happens when you use QuickAction, No issues found If you manually edit your pom