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

changeset 1415
01c9d4161882
parent 1374
c002fdee76fd
child 1442
fcf89720ae71
     1.1 --- a/src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java	Fri Nov 16 18:27:36 2012 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java	Sat Nov 17 19:01:03 2012 +0000
     1.3 @@ -525,7 +525,8 @@
     1.4                      bound = ((ErrorType)bound).getOriginalType();
     1.5                  //retrieve the bound list - if the type variable
     1.6                  //has not been attributed the bound is not set
     1.7 -                List<Type> bounds = bound != null ?
     1.8 +                List<Type> bounds = (bound != null) &&
     1.9 +                        (bound.hasTag(CLASS) || bound.hasTag(TYPEVAR)) ?
    1.10                      types.getBounds(t) :
    1.11                      List.<Type>nil();
    1.12  

mercurial