openamf/src/java/org/openamf/invoker RankedMethod.java,1.10,1.11
| Newsgroups | gmane.comp.java.openamf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker
In directory sc8-pr-cvs1:/tmp/cvs-serv15023/src/java/org/openamf/invoker
Modified Files:
RankedMethod.java
Log Message:
added support for null parameters
Index: RankedMethod.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/RankedMethod.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** RankedMethod.java 6 Jun 2003 02:24:30 -0000 1.10
--- RankedMethod.java 1 Jul 2003 01:16:32 -0000 1.11
***************
*** 179,182 ****
--- 179,190 ----
private Object decodeParameter(Object parameter, Class parameterType) {
+ if (parameter == null) {
+ try {
+ return parameterType.newInstance();
+ } catch (Exception e) {
+ log.error(e);
+ }
+ }
+
if (parameterType.equals(java.sql.Date.class)
&& parameter instanceof java.util.Date) {
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01