[Nice-commit] Nice/stdlib/nice/lang java.nice,1.35,1.36
Brought to you by:
bonniot
From: <ar...@us...> - 2003-08-31 22:06:51
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang In directory sc8-pr-cvs1:/tmp/cvs-serv4973/F:/nice/stdlib/nice/lang Modified Files: java.nice Log Message: Added retypings with a too large type for static collection that would require comparable. Index: java.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/java.nice,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** java.nice 31 Aug 2003 11:33:04 -0000 1.35 --- java.nice 31 Aug 2003 22:06:47 -0000 1.36 *************** *** 337,340 **** --- 337,345 ---- native void Collections.sort(List, Comparator); + // these 3 have a too large type because they can't use comparable yet. + <T> void sort(List<!T>) = native void Collections.sort(List); + <T> !T min(Collection<!T>) = native Object Collections.min(Collection); + <T> !T max(Collection<!T>) = native Object Collections.max(Collection); + <T,U,V | U <: T, V <: T> boolean Arrays_equals(U[], V[]) = native boolean Arrays.equals(Object[],Object[]); |