[ nice-Bugs-1513439 ] Arrays can't be used with method implementations

"SourceForge.net" <[email protected]> Tue, 27 Jun 2006 08:48:06 -0700
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1513439, was opened at 2006-06-27 15:43
Message generated for change (Comment added) made by ben77
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1513439&group_id=12788

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: B S (ben77)
Assigned to: Nobody/Anonymous (nobody)
Summary: Arrays can't be used with method implementations

Initial Comment:
You can do this with objects:
void test(?String str);
test(null){...}
test(String str){...}

but with arrays it doesn't work (the parser doesn't
like the [])
void test(int[?] arr);
test(null){}
test(int[] arr);

Specifically
Encountered "[]".
Was expecting one of:
    ")" ...
    "," ...
    "<=" ...
    ">=" ...
    "<" ...
    ">" ...
    "@" ...
    "#" ...
    "." ...
    ":" ...
    <IDENT> ...
    "(" ...

I don't know if this is by design or not, if its by
design this should be an RFE.

----------------------------------------------------------------------

>Comment By: B S (ben77)
Date: 2006-06-27 15:48

Message:
Logged In: YES 
user_id=929365

Maybe I should go and check the manual for things like this
first. It might be nice to make the solution more obvious in
the manual, as using test(Array arr) looks like Array is a
class.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1513439&group_id=12788

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642