aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2018-03-16 23:09:27 -0400
committerFred Bricon2018-03-16 23:09:27 -0400
commitfadbb896dc78d736a2d1a6aa8f5371d75cdaaa95 (patch)
treef3a565d6b57d7611c6d47d887fe2dcbe12217e98
parent7f24b625fecc009bb47d24bf877d55ad868914b0 (diff)
downloadm2e-core-fadbb896dc78d736a2d1a6aa8f5371d75cdaaa95.zip
m2e-core-fadbb896dc78d736a2d1a6aa8f5371d75cdaaa95.tar.gz
m2e-core-fadbb896dc78d736a2d1a6aa8f5371d75cdaaa95.tar.xz
Bug 532559 : fix UnsupportedOperationException in InternalModuleSupport.collectTransitiveRequiredModules
Change-Id: Ieba17c6a95f83983ba91a2530987fbc4f8f9bd73 Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
index 1e4f931..bcd2757 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
@@ -83,9 +83,9 @@ class InternalModuleSupport {
/**
* Sets <code>module</code flag to <code>true</code> to classpath dependencies declared in module-info.java
*
- * @param facade a Maven facade project
+ * @param facade a Maven facade project
* @param classpath a classpath descriptor
- * @param monitor a progress monitor
+ * @param monitor a progress monitor
*/
public static void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath,
IProgressMonitor monitor) throws CoreException {
@@ -97,7 +97,7 @@ class InternalModuleSupport {
if(monitor == null) {
monitor = new NullProgressMonitor();
}
- Set<String> requiredModules = getRequiredModules(javaProject, monitor);
+ Set<String> requiredModules = new LinkedHashSet<>(getRequiredModules(javaProject, monitor));
if(requiredModules.isEmpty() || classpath.getEntryDescriptors().isEmpty() || monitor.isCanceled()) {
return;