Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplication of "--enable-preview" tag in pom.xml #279

Open
subhash-arabhi opened this issue Sep 19, 2024 · 0 comments
Open

Duplication of "--enable-preview" tag in pom.xml #279

subhash-arabhi opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@subhash-arabhi
Copy link
Member

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

  1. Create an new Maven project or use an existing one
  2. 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!");
    }
} 
  1. Use QuickAction Enable Preview to add CompilerArgs to your pom file
  2. Now Run Main or Create Tests to see another enable preview arg added to your pom file
  3. It only happens when you use QuickAction, No issues found If you manually edit your pom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants