RFC #0030: Overloaded methods in lang.reflect.Proxyat 2005-07-14 in RFCs by friebe (0 comments) Scope of ChangeAdd a new functionality to method getProxyClass() of lang.reflect.Proxy class. This functionality will add the ability to design proxy classes by a new annotation "@overloaded" being able to give method calls a variable number of arguments, e.g. for overloaded methods in java. Rationale When creating proxy instances of a java class there is no way in php to overload methods. A java bean class implementing the following methods public string sayHello() {} public string sayHello(String name) {} would cause a "Fatal error: Cannot redeclare sayHello()" when generating an Interface for that class. Thus when creating Interfaces with overloaded methods, the overloaded method must be declared only once with a variable number of parameters. Read the full RFC here |
|