Skip to content

Commit acccaf1

Browse files
committed
Match module without resolving graph if possible
1 parent 7478382 commit acccaf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/matching/DOMTypeDeclarationLocator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ private int matchModule(TypeDeclarationPattern typePattern, ITypeBinding type) {
136136
String bindModName = module.getName();
137137

138138
if (typePattern.modulePatterns == null) {// use 'normal' matching
139+
for (char[] m : typePattern.moduleNames) {
140+
int ret = this.locator.matchNameValue(m, bindModName.toCharArray());
141+
if (ret != IMPOSSIBLE_MATCH) return ret;
142+
}
139143
char[][] moduleList = getModuleList(typePattern);
140144
for (char[] m : moduleList) { // match any in the list
141145
int ret = this.locator.matchNameValue(m, bindModName.toCharArray());

0 commit comments

Comments
 (0)