src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java

changeset 1415
01c9d4161882
parent 1374
c002fdee76fd
child 1442
fcf89720ae71
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
523 Type bound = t.bound; 523 Type bound = t.bound;
524 while ((bound instanceof ErrorType)) 524 while ((bound instanceof ErrorType))
525 bound = ((ErrorType)bound).getOriginalType(); 525 bound = ((ErrorType)bound).getOriginalType();
526 //retrieve the bound list - if the type variable 526 //retrieve the bound list - if the type variable
527 //has not been attributed the bound is not set 527 //has not been attributed the bound is not set
528 List<Type> bounds = bound != null ? 528 List<Type> bounds = (bound != null) &&
529 (bound.hasTag(CLASS) || bound.hasTag(TYPEVAR)) ?
529 types.getBounds(t) : 530 types.getBounds(t) :
530 List.<Type>nil(); 531 List.<Type>nil();
531 532
532 nameSimplifier.addUsage(t.tsym); 533 nameSimplifier.addUsage(t.tsym);
533 534

mercurial