From: Marc P. <ma...@an...> - 2005-04-15 08:57:28
|
Keats Kirsch wrote: > The $List tool can solve your problem. > > The "Ljava.lang.Object" is the JVMs polite way of telling you that > $myList is an array of Objects, which is what WMScript uses to implement > the square-bracket list syntax. RFE for WM (why don't we get a free open source JIRA install?)... which I may be able to turn myself too but it's probably wise to get a go-ahead first ;-) In the introspection code, when failures occur, I believe we should make the error messages like this simpler to understand for non-Java programmers. i.e. we could quite easily detect that class name Lxxxxx is an array, so we should say so in the message. i.e. "No such method contains() found on object, which is an array of java.lang.Object" I'm not sure there are any other changes along those lines, I remember a lot of work went into this with failed property introspections to there's probably not that much that can be improved. Cheers -- Marc Palmer wj...@wa... Wangjammers - Java, J2ME and Web Consultants ~ http://www.wangjammers.org/ |