Lines 192-198
Link Here
|
192 |
} |
192 |
} |
193 |
|
193 |
|
194 |
public void consumeField(char[] fieldName) { |
194 |
public void consumeField(char[] fieldName) { |
195 |
FieldBinding[] fields = ((ReferenceBinding) this.typeBinding).fields(); |
195 |
FieldBinding[] fields = ((ReferenceBinding) this.typeBinding).availableFields(); // resilience |
196 |
for (int i = 0, length = fields.length; i < length; i++) { |
196 |
for (int i = 0, length = fields.length; i < length; i++) { |
197 |
FieldBinding field = fields[i]; |
197 |
FieldBinding field = fields[i]; |
198 |
if (CharOperation.equals(fieldName, field.name)) { |
198 |
if (CharOperation.equals(fieldName, field.name)) { |
Lines 238-244
Link Here
|
238 |
} |
238 |
} |
239 |
|
239 |
|
240 |
public void consumeMethod(char[] selector, char[] signature) { |
240 |
public void consumeMethod(char[] selector, char[] signature) { |
241 |
MethodBinding[] methods = ((ReferenceBinding) this.typeBinding).methods(); |
241 |
MethodBinding[] methods = ((ReferenceBinding) this.typeBinding).availableMethods(); // resilience |
242 |
for (int i = 0, methodLength = methods.length; i < methodLength; i++) { |
242 |
for (int i = 0, methodLength = methods.length; i < methodLength; i++) { |
243 |
MethodBinding method = methods[i]; |
243 |
MethodBinding method = methods[i]; |
244 |
if (CharOperation.equals(selector, method.selector) || (selector.length == 0 && method.isConstructor())) { |
244 |
if (CharOperation.equals(selector, method.selector) || (selector.length == 0 && method.isConstructor())) { |
Lines 339-345
Link Here
|
339 |
public void consumeTypeVariable(char[] position, char[] typeVariableName) { |
339 |
public void consumeTypeVariable(char[] position, char[] typeVariableName) { |
340 |
if (position.length > 0) { |
340 |
if (position.length > 0) { |
341 |
int pos = Integer.parseInt(new String(position)); |
341 |
int pos = Integer.parseInt(new String(position)); |
342 |
MethodBinding[] methods = ((ReferenceBinding) this.typeBinding).methods(); |
342 |
MethodBinding[] methods = ((ReferenceBinding) this.typeBinding).availableMethods(); // resilience |
343 |
if (methods != null && pos < methods.length) { |
343 |
if (methods != null && pos < methods.length) { |
344 |
this.methodBinding = methods[pos]; |
344 |
this.methodBinding = methods[pos]; |
345 |
} |
345 |
} |