Re: seeking 'if' condition with form '($myVar in $myList)'...

Marc Palmer <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Organization AnyWare Ltd.
Message-ID <[email protected]>
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    [email protected]
			
Wangjammers - Java, J2ME and Web Consultants
   ~ http://www.wangjammers.org/



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.