|
FunctionSignature, rev 2: msg#00202text.xml.exist
This checks under- and over-flow of arguments to a function. Instead of trying to determine how many arguments a signature allows (not always possible), instead Function asks Signature if a certain number are allowed. Index: src/org/exist/xquery/FunctionSignature.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/FunctionSignature.java,v retrieving revision 1.1 diff -r1.1 FunctionSignature.java 88,89c88,113 < return arguments != null ? arguments.length : 0; < } --- if (arguments == null || arguments.length == 0)Index: src/org/exist/xquery/Function.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/Function.java,v retrieving revision 1.6 diff -r1.6 Function.java 162,163c162 < if ((!mySignature.isOverloaded()) < && arguments.size() != mySignature.getArgumentCount()) --- if ((!mySignature.isOverloaded()) && ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | FunctionSignature: 00202, finder |
|---|---|
| Next by Date: | Re: FunctionSignature, rev 2: 00202, Wolfgang Meier |
| Previous by Thread: | FunctionSignaturei: 00202, finder |
| Next by Thread: | Re: FunctionSignature, rev 2: 00202, Wolfgang Meier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |