diff options
author | Stephan Herrmann | 2018-10-18 11:03:13 +0000 |
---|---|---|
committer | Stephan Herrmann | 2018-10-18 11:03:13 +0000 |
commit | f2af8cbbffbe87cc40842f4d43a4e86ec67349aa (patch) | |
tree | 3b4c3e3b132d68cd71e7a5f2e261569d006a9a1b | |
parent | 97c753dfdf0ef23b86019c44c2c68feb79b5c301 (diff) | |
download | eclipse.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
Change-Id: Ic639cce326b908c85f3dd157d3bcffc04e852195
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ModuleBinding.java | 5 |
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); |