|
|
Sponsor |
Nice/src/bossa/syntax MethodBodyDefinition.java,1.141,1.142: msg#00050lang.nice.cvs
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv32150/src/bossa/syntax Modified Files: MethodBodyDefinition.java Log Message: Report an error when a method implementation binds type parameters that are not in the method declaration. Index: MethodBodyDefinition.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/MethodBodyDefinition.java,v retrieving revision 1.141 retrieving revision 1.142 diff -C2 -d -r1.141 -r1.142 *** MethodBodyDefinition.java 11 Sep 2003 20:50:27 -0000 1.141 --- MethodBodyDefinition.java 11 Sep 2003 21:07:01 -0000 1.142 *************** *** 303,318 **** // Get type parameters if (binders != null) ! try{ ! typeScope.addMappingsLS ! (binders, ! declaration.getType().getConstraint().binders()); ! } ! catch(mlsub.typing.BadSizeEx e){ ! User.error(name, "Method " + name + ! " expects " + e.expected + " type parameters"); ! } ! catch(TypeScope.DuplicateName e) { ! User.error(this, e); ! } try{ --- 303,322 ---- // Get type parameters if (binders != null) ! { ! Constraint cst = declaration.getType().getConstraint(); ! if (! Constraint.hasBinders(cst)) ! User.error(name, "Method " + name + " has no type parameters"); ! ! try{ ! typeScope.addMappingsLS(binders, cst.binders()); ! } ! catch(mlsub.typing.BadSizeEx e){ ! User.error(name, "Method " + name + ! " expects " + e.expected + " type parameters"); ! } ! catch(TypeScope.DuplicateName e) { ! User.error(this, e); ! } ! } try{ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Nice/debian changelog,1.208,1.209, bonniot |
|---|---|
| Next by Date: | Nice .cvsignore,1.9,1.10, bonniot |
| Previous by Thread: | Nice/debian changelog,1.208,1.209, bonniot |
| Next by Thread: | Nice .cvsignore,1.9,1.10, bonniot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|