Skip to content

Commit c14baaf

Browse files
Copilotlaeubi
authored andcommitted
Fix compile errors: missing release parameter in findModule calls
1 parent 36cfe18 commit c14baaf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ModuleBinding.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.eclipse.jdt.core.compiler.CharOperation;
2020
import org.eclipse.jdt.internal.compiler.env.INameEnvironment;
2121
import org.eclipse.jdt.internal.compiler.util.Util;
22+
import org.eclipse.jdt.internal.core.JavaProject;
2223
import org.eclipse.jdt.internal.core.NameLookup;
2324
import org.eclipse.jdt.internal.core.NameLookup.Answer;
2425
import org.eclipse.jdt.internal.core.SearchableEnvironment;
@@ -124,7 +125,7 @@ public IJavaElement getJavaElement() {
124125
if (!(nameEnvironment instanceof SearchableEnvironment)) return null;
125126
NameLookup nameLookup = ((SearchableEnvironment) nameEnvironment).nameLookup;
126127
if (nameLookup == null) return null;
127-
Answer answer = nameLookup.findModule(this.getName().toCharArray());
128+
Answer answer = nameLookup.findModule(this.getName().toCharArray(), JavaProject.NO_RELEASE);
128129
if (answer == null) return null;
129130
return answer.module;
130131
}

org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public IJavaElement[] getElements() {
886886
return this.elements;
887887
}
888888
protected IModuleDescription resolveModule(char[] moduleName) {
889-
Answer answer = this.nameLookup.findModule(moduleName);
889+
Answer answer = this.nameLookup.findModule(moduleName, JavaProject.NO_RELEASE);
890890
if (answer != null) {
891891
return answer.module;
892892
}

0 commit comments

Comments
 (0)