Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2019-05-10 17:59:15 -0400
committerStephan Herrmann2019-05-10 17:59:33 -0400
commit66765d11a86c7477838a39eafba6169fca506ed3 (patch)
treea839993b906a1be597d692ce95215f3f7111116c
parent2ad2b8d585b1167800deee0b2802a3691f509b43 (diff)
downloadeclipse.jdt.core-66765d11a86c7477838a39eafba6169fca506ed3.tar.gz
eclipse.jdt.core-66765d11a86c7477838a39eafba6169fca506ed3.tar.xz
eclipse.jdt.core-66765d11a86c7477838a39eafba6169fca506ed3.zip
Bug 547094 - Refactoring not working with Java 11 (NPE at
org.eclipse.jdt.internal.compiler.util.Sorting.sortSuper(Sorting.java:75) - avoid escaping of TheNotFoundType. Change-Id: I40c69c5f202a92127b24d7579ea78d9d960c6a46 Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
index f2b914d086..11b6f4fe15 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
@@ -1740,7 +1740,8 @@ private ReferenceBinding getTypeFromCompoundName(char[][] compoundName, boolean
}
packageBinding.addType(binding);
}
- } else if (binding == TheNotFoundType) {
+ }
+ if (binding == TheNotFoundType) {
// report the missing class file first
if (!wasMissingType) {
/* Since missing types have been already been complained against while producing binaries, there is no class path

Back to the top