From: Samuele P. <pe...@in...> - 2002-03-09 19:37:05
|
> many thanks. I also solved it with > java.lang.Class.forName("[Ljava.lang.Object;") > but i prefer your version. > The getClass technique has also the advantage to work even in the case the class classloader is not one of the usual suspects <wink>. forName approach then would become more trickier. We should maybe add an optional parameter to array: such that array(...,class,n) is a n+1 dimensional class array . So in you case you would write: array(...,java.lang.Object,1) regards. |