|
From: <php...@li...> - 2007-09-10 09:19:52
|
Hi,
I'm having some problems with a Java 1.5 feature.
I have a java class with a function like:
public void doSomething(String...) {
...
}
DeclaredMethods (according to getDeclaredMethods):
- doSomething([Ljava.lang.String;)
- doSomething(java.util.List)
I've tried to pass a single string the following ways:
- java.lang.reflect.Array with java.lang.String
- java.util.Arrays->asList with array('...')
- ArrayList, how do I cast this to a java.util.List ?
I keep getting a NoSuchMethodException.
Any suggestions?
Setup:
- Apache 2.2.4
- PHP 5.2.3
- Tomcat 5.5.17
- Java Bridge 4.2.2
|