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

[junit] [2024-09 regression?] "Java 8 Project - Run As - JUnit test" fails because of incompatible VM arguments added to launch config #1793

Open
rhoehener opened this issue Nov 11, 2024 · 2 comments

Comments

@rhoehener
Copy link

The automatically created junit launch configuration now contains the line:

--add-opens java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED

Suggestion would be to only add VM options compatible with the project execution environment.

image

image

image

@srikanth-sankaran srikanth-sankaran transferred this issue from eclipse-jdt/eclipse.jdt.core Nov 11, 2024
@srikanth-sankaran
Copy link

Not entirely sure this is the right place, sorry if misassigned. Please redirect

@jukzi
Copy link
Contributor

jukzi commented Nov 12, 2024

relevant code may be:
org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.collectAddOpensVmArgs(String, List, String, ILaunchConfiguration)
org.eclipse.jdt.ui.unittest.junit.launcher.JUnitLaunchConfigurationDelegate.collectAddOpensVmArgs(String, List, String, ILaunchConfiguration)
org.eclipse.pde.unittest.junit.launcher.JUnitPluginLaunchConfigurationDelegate.collectAddOpensVmArgs(String, List, String, ILaunchConfiguration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants