I have been having trouble sometimes passing in null to a method call, particularly
arrays. It is weird sometimes null just works, sometimes I have to typecast it,
sometimes I have to declare a variable and pass the variable in. I don't have a
testcase yet because sometimes it works, sometimes it doesn't.
i.e.
| {
| Object[] args = null;
| foo.someMethod(args);
|
| OR....
|
| foo.someMethod((Object[])null); // sometimes this doesn't work either
| }
| /code]
|
| instead of just
|
|
| | {
| |
| | foo.someMethod(null);
| | }
| | /code]
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822444#3822444
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822444
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development