src/share/classes/com/sun/tools/javac/comp/Infer.java

changeset 2384
327122b01a9e
parent 2382
14979dd5e034
child 2525
2eb010b6cb22
child 2543
c6d5efccedc3
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Infer.java	Wed May 07 21:33:15 2014 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Infer.java	Tue May 06 15:46:09 2014 -0600
     1.3 @@ -1407,7 +1407,7 @@
     1.4              Type solve(UndetVar uv, InferenceContext inferenceContext) {
     1.5                  Infer infer = inferenceContext.infer();
     1.6                  List<Type> hibounds = filterBounds(uv, inferenceContext);
     1.7 -                //note: lobounds should have at least one element
     1.8 +                //note: hibounds should have at least one element
     1.9                  Type owntype = hibounds.tail.tail == null  ? hibounds.head : infer.types.glb(hibounds);
    1.10                  if (owntype.isPrimitive() || owntype.hasTag(ERROR)) {
    1.11                      throw infer.inferenceException

mercurial