Lines 374-395
Link Here
|
374 |
} |
374 |
} |
375 |
|
375 |
|
376 |
private JavaElement getUnresolvedJavaElement() { |
376 |
private JavaElement getUnresolvedJavaElement() { |
377 |
if (this.binding == null) |
377 |
org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = this.binding; |
|
|
378 |
if (typeBinding == null) |
378 |
return null; |
379 |
return null; |
379 |
switch (this.binding.kind()) { |
380 |
switch (typeBinding.kind()) { |
380 |
case Binding.ARRAY_TYPE : |
381 |
case Binding.ARRAY_TYPE : |
|
|
382 |
typeBinding = ((ArrayBinding) typeBinding).leafComponentType(); |
383 |
break; |
381 |
case Binding.BASE_TYPE : |
384 |
case Binding.BASE_TYPE : |
382 |
case Binding.WILDCARD_TYPE : |
385 |
case Binding.WILDCARD_TYPE : |
383 |
return null; |
386 |
return null; |
384 |
default : |
387 |
default : |
385 |
if (this.binding.isCapture()) |
388 |
if (typeBinding.isCapture()) |
386 |
return null; |
389 |
return null; |
387 |
} |
390 |
} |
388 |
ReferenceBinding referenceBinding; |
391 |
ReferenceBinding referenceBinding; |
389 |
if (this.binding.isParameterizedType() || this.binding.isRawType()) |
392 |
if (typeBinding.isParameterizedType() || typeBinding.isRawType()) |
390 |
referenceBinding = (ReferenceBinding) this.binding.erasure(); |
393 |
referenceBinding = (ReferenceBinding) typeBinding.erasure(); |
391 |
else |
394 |
else |
392 |
referenceBinding = (ReferenceBinding) this.binding; |
395 |
referenceBinding = (ReferenceBinding) typeBinding; |
393 |
char[] fileName = referenceBinding.getFileName(); |
396 |
char[] fileName = referenceBinding.getFileName(); |
394 |
if (Util.isClassFileName(fileName)) { |
397 |
if (Util.isClassFileName(fileName)) { |
395 |
ClassFile classFile = (ClassFile) getClassFile(fileName); |
398 |
ClassFile classFile = (ClassFile) getClassFile(fileName); |