Hello everybody,

how do I create an Array and put it in the BSF-Registry in JLog?
According to the documentation at http://www.ulfdittmer.com/jlog/index.html and the included example it should go like this:


invoke('java.lang.reflect.Array', 'newInstance', ['String.class', 2], X1).

Unfortunately BSF cancels the execution with following error message:

No suitable method named newInstance with 2 parameters was found in class 
java.lang.reflect.Array...


I guess the reason could be that newInstance is a static method.
Another question that comes up is how can I register the return type - X1 in my example - as an object in the BSF registry for further use?


Thanks in advance,
-Rainer Hahnekamp

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to