From: <php...@li...> - 2013-10-11 00:33:41
|
I have a Java class that has multiple overloading methods. For example: fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params) fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) I want to use the third method signature, however php/java bridge is choosing the second method signature which is then causing an IllegalArguementException as follows: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[c:JREmptyDataSource]). Cause: java.lang.IllegalArgumentException: argument type mismatch I think the problem occurs because the second and third methods final arguerment is both an object and the php/bridge code is only checking if it is an object?!? How can I choose the appropriate method? Much appreciated, James |