[Nice-commit] Nice/src/bossa/syntax NiceMethod.java,1.30,1.31
Brought to you by:
bonniot
From: <bo...@us...> - 2004-03-03 09:52:53
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6419/src/bossa/syntax Modified Files: NiceMethod.java Log Message: Report an error if a method pretends to be an override but is not. Index: NiceMethod.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/NiceMethod.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** NiceMethod.java 2 Mar 2004 16:02:44 -0000 1.30 --- NiceMethod.java 3 Mar 2004 09:40:27 -0000 1.31 *************** *** 166,169 **** --- 166,172 ---- findSpecializedMethods(); + if (isOverride && specializedMethods == null) + User.error(this, "This method does not override any other method"); + super.typedResolve(); } |