diff options
author | Stephan Herrmann | 2019-05-10 21:59:15 +0000 |
---|---|---|
committer | Stephan Herrmann | 2019-05-10 21:59:33 +0000 |
commit | 66765d11a86c7477838a39eafba6169fca506ed3 (patch) | |
tree | a839993b906a1be597d692ce95215f3f7111116c | |
parent | 2ad2b8d585b1167800deee0b2802a3691f509b43 (diff) | |
download | eclipse.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.java | 3 |
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 |