[Nice-commit] Nice NEWS,1.38,1.39
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-07-30 19:08:55
|
Update of /cvsroot/nice/Nice In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6432 Modified Files: NEWS Log Message: java.lang.Class is now parameterized by the type it represents. Index: NEWS =================================================================== RCS file: /cvsroot/nice/Nice/NEWS,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** NEWS 20 Jul 2004 22:37:50 -0000 1.38 --- NEWS 30 Jul 2004 19:08:46 -0000 1.39 *************** *** 7,11 **** assert o instanceof String; // Here o can be used as a string without cast ! -- --- 7,15 ---- assert o instanceof String; // Here o can be used as a string without cast ! * java.lang.Class is now parameterized by the type it represents. ! In particular, newInstance is now declared in nice.lang with ! <T> T newInstance(Class<T>); ! This make it possible to write type-safe code that uses reflexion, ! in particular when using class literals. -- |