Lines 294-300
Link Here
|
294 |
MethodScope methodScope = scope.methodScope(); |
294 |
MethodScope methodScope = scope.methodScope(); |
295 |
// check for forward references |
295 |
// check for forward references |
296 |
if (this.indexOfFirstFieldBinding == 1 |
296 |
if (this.indexOfFirstFieldBinding == 1 |
297 |
&& methodScope.enclosingSourceType() == fieldBinding.declaringClass |
297 |
&& methodScope.enclosingSourceType() == fieldBinding.original().declaringClass |
298 |
&& methodScope.lastVisibleFieldID >= 0 |
298 |
&& methodScope.lastVisibleFieldID >= 0 |
299 |
&& fieldBinding.id >= methodScope.lastVisibleFieldID |
299 |
&& fieldBinding.id >= methodScope.lastVisibleFieldID |
300 |
&& (!fieldBinding.isStatic() || methodScope.isStatic)) { |
300 |
&& (!fieldBinding.isStatic() || methodScope.isStatic)) { |
Lines 999-1008
Link Here
|
999 |
if (binding instanceof FieldBinding) { |
999 |
if (binding instanceof FieldBinding) { |
1000 |
FieldBinding fieldBinding = (FieldBinding) binding; |
1000 |
FieldBinding fieldBinding = (FieldBinding) binding; |
1001 |
MethodScope methodScope = scope.methodScope(); |
1001 |
MethodScope methodScope = scope.methodScope(); |
1002 |
ReferenceBinding declaringClass = fieldBinding.declaringClass; |
|
|
1003 |
// check for forward references |
1002 |
// check for forward references |
1004 |
if (this.indexOfFirstFieldBinding == 1 |
1003 |
if (this.indexOfFirstFieldBinding == 1 |
1005 |
&& methodScope.enclosingSourceType() == declaringClass |
1004 |
&& methodScope.enclosingSourceType() == fieldBinding.original().declaringClass |
1006 |
&& methodScope.lastVisibleFieldID >= 0 |
1005 |
&& methodScope.lastVisibleFieldID >= 0 |
1007 |
&& fieldBinding.id >= methodScope.lastVisibleFieldID |
1006 |
&& fieldBinding.id >= methodScope.lastVisibleFieldID |
1008 |
&& (!fieldBinding.isStatic() || methodScope.isStatic)) { |
1007 |
&& (!fieldBinding.isStatic() || methodScope.isStatic)) { |