« Return to Thread: methods with same name

Re: methods with same name

by Peter Schmidt-6 :: Rate this Message:

Reply to Author | View in Thread

Nicolás Pace schrieb:

> The idea is:
> i know that in some screen i will need to call method1(arg1, arg2) &
> method2(arg1),
> So before y create that interface, i query securityService if my
> credentials will allow me to call this methods (this applies only for
> beforeinvocation).
>
> But the problem arrise when you have 2 methods with the same name,
> because we where querying just with the method name.
>
> We have 2 ways, to ask for the whole signature or to ask not to use
> the same method name for 2 methods in the same class
You should allow the method name string in isCallable to be both, a
simple name or a signature like "methodname( string, int )".
If it's a simple name and there are more methods with this name throw an
exception.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: methods with same name