Hi, I have a question regarding to the behavior of the (call)

(call arg1 arg2 method_arg_list)
why when arg1 is RU.STRING || RU.SYMBOL, it was treated the same way.
I am puzzled about this, I think if the (jess-type arg1) returns RU.SYMBOL,
the call method should find the class of arg1 instead of treate arg1 as
String.

if ((jess-type arg1) == RU.STRING)
{....}
if((jess-type arg1) == RU.SYMBOL)
{
 (find-class arg1)
 ....
}

(call StringUtils contains "test" "t") won't throw any exception. Am I
missing some big pictures, your input is greatly appreciated.


-------------------------------Exception when arg1 is a RU.SYMBOL, but
treated the same way as
RU.STRING----------------------------------------------
(clear)
(reset)
(watch all)

(import org.apache.commons.lang.*)
(call StringUtils containsNone "test" "t")
(fine, StringUtils is RU.SYMBOL && String doesn't have containsNone method)
(call StringUtils contains "test" "t")
(exception, StringUtils is RU.SYMBOL && String has the contains method)



Thanks.
Yuping

Reply via email to