[Nice-commit] Nice/src/bossa/syntax NiceClass.java,1.56,1.57
Brought to you by:
bonniot
From: <bo...@us...> - 2003-08-06 22:40:34
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv5857/src/bossa/syntax Modified Files: NiceClass.java Log Message: Fixed generation of the minimalist Java constructor when of field override includes a value and the original field does too. Index: NiceClass.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/NiceClass.java,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** NiceClass.java 31 Jul 2003 23:40:23 -0000 1.56 --- NiceClass.java 6 Aug 2003 22:40:31 -0000 1.57 *************** *** 253,257 **** if (value != null) inherited[i] = new FormalParameters.OptionalParameter ! (type, sym.getName(), true, value, true); else inherited[i].resetType(type); --- 253,258 ---- if (value != null) inherited[i] = new FormalParameters.OptionalParameter ! (type, sym.getName(), true, value, ! inherited[i].value() == null || inherited[i].isOverriden()); else inherited[i].resetType(type); |