Lines 494-501
Link Here
|
494 |
} |
494 |
} |
495 |
} |
495 |
} |
496 |
} |
496 |
} |
497 |
} else { |
497 |
} else if(!foundType.mustBeQualified){ |
498 |
foundType.mustBeQualified = true; |
498 |
done : for (int j = 0; j < this.onDemandImportCacheCount; j++) { |
|
|
499 |
ImportBinding importBinding = this.onDemandImportsCache[j]; |
500 |
|
501 |
char[][] importName = importBinding.compoundName; |
502 |
char[] importFlatName = CharOperation.concatWith(importName, '.'); |
503 |
|
504 |
if(fullyQualifiedEnclosingTypeOrPackageName == null) { |
505 |
if(enclosingTypeNames != null && enclosingTypeNames.length != 0) { |
506 |
fullyQualifiedEnclosingTypeOrPackageName = |
507 |
CharOperation.concat( |
508 |
packageName, |
509 |
flatEnclosingTypeNames, |
510 |
'.'); |
511 |
} else { |
512 |
fullyQualifiedEnclosingTypeOrPackageName = |
513 |
packageName; |
514 |
} |
515 |
} |
516 |
if(CharOperation.equals(fullyQualifiedEnclosingTypeOrPackageName, importFlatName)) { |
517 |
if(importBinding.isStatic()) { |
518 |
if((modifiers & IConstants.AccStatic) != 0) { |
519 |
foundType.mustBeQualified = true; |
520 |
break done; |
521 |
} |
522 |
} else { |
523 |
foundType.mustBeQualified = true; |
524 |
break done; |
525 |
} |
526 |
} |
527 |
} |
499 |
} |
528 |
} |
500 |
proposeType( |
529 |
proposeType( |
501 |
packageName, |
530 |
packageName, |