[Nice-commit] Nice/src/bossa/syntax CustomConstructor.java,1.8,1.9
Brought to you by:
bonniot
From: <bo...@us...> - 2003-12-16 12:59:53
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv20998/src/bossa/syntax Modified Files: CustomConstructor.java Log Message: Report an error when a custom constructor is defined on a non-Nice class. Index: CustomConstructor.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/CustomConstructor.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** CustomConstructor.java 15 Dec 2003 16:19:47 -0000 1.8 --- CustomConstructor.java 16 Dec 2003 12:59:50 -0000 1.9 *************** *** 104,107 **** --- 104,111 ---- classe = NiceClass.get(tc); + if (classe == null) + User.error(this, + "It is impossible to add a constructor to class " + tc); + addConstructorCallSymbol(); |