Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2018-10-18 11:03:13 +0000
committerStephan Herrmann2018-10-18 11:03:13 +0000
commitf2af8cbbffbe87cc40842f4d43a4e86ec67349aa (patch)
tree3b4c3e3b132d68cd71e7a5f2e261569d006a9a1b
parent97c753dfdf0ef23b86019c44c2c68feb79b5c301 (diff)
downloadeclipse.jdt.core-f2af8cbbffbe87cc40842f4d43a4e86ec67349aa.tar.gz
eclipse.jdt.core-f2af8cbbffbe87cc40842f4d43a4e86ec67349aa.tar.xz
eclipse.jdt.core-f2af8cbbffbe87cc40842f4d43a4e86ec67349aa.zip
Bug 537934 - Build never comes to an end and working is not possible
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java
index 455058cdbd..2c9911efac 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java
@@ -569,8 +569,11 @@ public class ModuleBinding extends Binding implements IUpdatableModule {
if (!isUnnamed()) {
binding = combineWithPackagesFromRequired(binding, subPkgCompoundName);
}
- if (binding == null || !binding.isValidBinding())
+ if (binding == null || !binding.isValidBinding()) {
+ if (parent != null)
+ parent.knownPackages.put(name, binding == null ? LookupEnvironment.TheNotFoundPackage : binding);
return null;
+ }
// remember
if (parentName.length == 0)
binding.environment.knownPackages.put(name, binding);

Back to the top