- 
    Bug 
- 
    Resolution: Not an Issue
- 
     P5 P5
- 
    None
- 
    5.0
- 
        x86
- 
        windows_xp
                    FULL PRODUCT VERSION :
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
A DESCRIPTION OF THE PROBLEM :
This program does not compile:
public class Try {
void m() {
java.util.Collections.max(null);
}
}
incompatible types; inferred type argument(s) java.lang.Comparable<? super T> do not conform to bounds of type variable(s) T
found : <T>T
required: java.lang.Object
java.util.Collections.max(null);
^
1 error
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-07-20 09:52:48 GMT
            
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
A DESCRIPTION OF THE PROBLEM :
This program does not compile:
public class Try {
void m() {
java.util.Collections.max(null);
}
}
incompatible types; inferred type argument(s) java.lang.Comparable<? super T> do not conform to bounds of type variable(s) T
found : <T>T
required: java.lang.Object
java.util.Collections.max(null);
^
1 error
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-07-20 09:52:48 GMT
- relates to
- 
                    JDK-6369605 Unconstrained type variables fails to include bounds -           
- Closed
 
-