Hi

There is some code for this issue, but perhaps it does not work well (any more)
Can you show/explain your implementation? What kind of functions?
guess what .. I found the bug :-)

I will snippet some code from MMObjectBuilder:

2392 final Object getFunctionValue(MMObjectNode node, String function, List arguments) {
2393
2394 Object rtn = null;
2395 if (arguments == null) arguments = new Vector();
2396 // for backwards compatibility
2397 if (arguments.size() == 1 && arguments.get(0) instanceof String) {
2398 rtn = executeFunction(node, function, (String) arguments.get(0));
2399 if (rtn != null) return rtn;
2400 }
2401 return executeFunction(node, function, arguments);
2402
2403 }


but what if arguments.size() == 0 ?

most methods I implemented in javabuilders that extend MMObjectBuilder
dont take _any_ arguments in which case the backwards compatibility
doesnt work.

I tested that .. if I pass a bogus argument the methods work again.
aw, it's so obvious now :-) ...

BTW I suppose that this is also the case in 1.6, and we should file it
as a bug ASAP.
ehm .. ok ... should I do that ? .. how ?

cu
*pike

============

Internet search engines that take money from Web sites in exchange for prominent placement should make that practice clearer to Web users, federal regulators said Friday.Many search engine Web sites, including AltaVista, LookSmart and AOL Search, give preferred placement to paid advertisers. The Federal Trade Commission said that prime space can confuse Web users who are looking for the best response to their search, rather than ads for sites that paid up front.




Reply via email to