Lines 310-316
Link Here
|
310 |
*/ |
310 |
*/ |
311 |
public String debugName() { |
311 |
public String debugName() { |
312 |
StringBuffer nameBuffer = new StringBuffer(10); |
312 |
StringBuffer nameBuffer = new StringBuffer(10); |
313 |
nameBuffer.append(this.type.sourceName()); |
313 |
if (this.type instanceof UnresolvedReferenceBinding) { |
|
|
314 |
nameBuffer.append(this.type); |
315 |
} else { |
316 |
nameBuffer.append(this.type.sourceName()); |
317 |
} |
314 |
if (this.arguments != null) { |
318 |
if (this.arguments != null) { |
315 |
nameBuffer.append('<'); |
319 |
nameBuffer.append('<'); |
316 |
for (int i = 0, length = this.arguments.length; i < length; i++) { |
320 |
for (int i = 0, length = this.arguments.length; i < length; i++) { |
Lines 830-836
Link Here
|
830 |
if (this.arguments != null) { |
834 |
if (this.arguments != null) { |
831 |
int argLength = this.arguments.length; |
835 |
int argLength = this.arguments.length; |
832 |
for (int i = 0; i < argLength; i++) |
836 |
for (int i = 0; i < argLength; i++) |
833 |
this.arguments[i] = BinaryTypeBinding.resolveType(this.arguments[i], this.environment, this, i); |
837 |
this.arguments[i] = BinaryTypeBinding.resolveType(this.arguments[i], this.environment, null, 0); |
834 |
// arity check |
838 |
// arity check |
835 |
TypeVariableBinding[] refTypeVariables = resolvedType.typeVariables(); |
839 |
TypeVariableBinding[] refTypeVariables = resolvedType.typeVariables(); |
836 |
if (refTypeVariables == Binding.NO_TYPE_VARIABLES) { // check generic |
840 |
if (refTypeVariables == Binding.NO_TYPE_VARIABLES) { // check generic |
Lines 988-994
Link Here
|
988 |
public String toString() { |
992 |
public String toString() { |
989 |
StringBuffer buffer = new StringBuffer(30); |
993 |
StringBuffer buffer = new StringBuffer(30); |
990 |
if (this.type instanceof UnresolvedReferenceBinding) { |
994 |
if (this.type instanceof UnresolvedReferenceBinding) { |
991 |
buffer.append(this.type); |
995 |
buffer.append(this.debugName()); |
992 |
} else { |
996 |
} else { |
993 |
if (isDeprecated()) buffer.append("deprecated "); //$NON-NLS-1$ |
997 |
if (isDeprecated()) buffer.append("deprecated "); //$NON-NLS-1$ |
994 |
if (isPublic()) buffer.append("public "); //$NON-NLS-1$ |
998 |
if (isPublic()) buffer.append("public "); //$NON-NLS-1$ |