diff options
author | Till Brychcy | 2018-08-09 19:48:22 +0000 |
---|---|---|
committer | Till Brychcy | 2018-08-17 15:07:17 +0000 |
commit | 97b95fa05a64615fc7296744b69bd741cc4af2c7 (patch) | |
tree | fd7acd67e432a1c72623572bbac098e97cd282b6 /org.eclipse.jdt.core | |
parent | 5c1f8dfb7df86db618eaf450c367e5fce7e6663d (diff) | |
download | eclipse.jdt.core-97b95fa05a64615fc7296744b69bd741cc4af2c7.tar.gz eclipse.jdt.core-97b95fa05a64615fc7296744b69bd741cc4af2c7.tar.xz eclipse.jdt.core-97b95fa05a64615fc7296744b69bd741cc4af2c7.zip |
Bug 537828 - Incorrect report : The field is defined in an inheritedI20180818-0800I20180817-2000
type and an enclosing scope
Change-Id: Iffcd94658d1144fde304bd06098b613bbbdb34e7
Diffstat (limited to 'org.eclipse.jdt.core')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java index baa3395505..efda88d633 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java @@ -2136,7 +2136,7 @@ public abstract class Scope { if (TypeBinding.equalsEquals(receiverType, fieldBinding.declaringClass) || compilerOptions().complianceLevel >= ClassFileConstants.JDK1_4) { // found a valid field in the 'immediate' scope (i.e. not inherited) // OR in 1.4 mode (inherited shadows enclosing) - if (foundField == null) { + if (foundField == null || foundField.problemId() == ProblemReasons.NotVisible) { if (depth > 0){ invocationSite.setDepth(depth); invocationSite.setActualReceiverType(receiverType); |