Skip to content

Commit

Permalink
Properly create IJavaProject in JpmsConfigurationTest
Browse files Browse the repository at this point in the history
The pattern used to cast java nature to java project is wrong and we
have seen it used in many places but broke for some reason with 2024-03.
This reduces the failing tests of
eclipse-m2e#1720 .
  • Loading branch information
akurtakov committed Apr 9, 2024
1 parent 41bce90 commit 439ddfb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -75,7 +75,7 @@ public void testFileChangeUpdatesJPMSSettings() throws CoreException, IOExceptio
waitForJobsToComplete();

// At start, check all attributes are empty
IJavaProject javaProject = (IJavaProject) project.getNature(JavaCore.NATURE_ID);
IJavaProject javaProject = JavaCore.create(project);
Map<String, String> jreAttributes = Utils.getJreContainerAttributes(javaProject);
Map<String, String> m2eAttributes = Utils.getM2eContainerAttributes(javaProject);

Expand Down

0 comments on commit 439ddfb

Please sign in to comment.