Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2019-03-29 20:49:47 +0000
committerTill Brychcy2019-03-29 20:49:47 +0000
commitf9b62acd0aee36d543f421098ddb3755d12804ae (patch)
treed2f15f9b5c80d1c16963a9c8ba9b9adf2d943141
parenta9ab0710a01b2b2fcd12b7238201fefaacb760ce (diff)
downloadeclipse.jdt.core-I20190330-1800.tar.gz
eclipse.jdt.core-I20190330-1800.tar.xz
eclipse.jdt.core-I20190330-1800.zip
Bug 545897 - Missing code suggestions for result of a method within theI20190401-1800I20190331-1800I20190330-1800
parameter list of another method when annotation processing is enabled (no annotation processor neccessary) Change-Id: I82361383040a60a39d6f37cf172b808bcc6ef3f4
-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 5678f8deb5..9192ea0855 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
@@ -570,12 +570,13 @@ public void completeTypeBindings(CompilationUnitDeclaration parsedUnit) {
public void completeTypeBindings(CompilationUnitDeclaration parsedUnit, boolean buildFieldsAndMethods) {
if (parsedUnit.scope == null) return; // parsing errors were too severe
LookupEnvironment rootEnv = this.root;
+ CompilationUnitDeclaration previousUnitBeingCompleted = rootEnv.unitBeingCompleted;
(rootEnv.unitBeingCompleted = parsedUnit).scope.checkAndSetImports();
parsedUnit.scope.connectTypeHierarchy();
parsedUnit.scope.checkParameterizedTypes();
if (buildFieldsAndMethods)
parsedUnit.scope.buildFieldsAndMethods();
- rootEnv.unitBeingCompleted = null;
+ rootEnv.unitBeingCompleted = previousUnitBeingCompleted;
}
/*

Back to the top