Using Jess 5.1:

if I have a class like this:

public class A
{
        public final static Object VAR = new Integer(1);

        public void setValueById(Object id)
        {
                m_val = id;
            }

        private Object m_val,
}

and rules (forgive syntax errors):

(defclass classA A)

(defRule varTest
        (classA (OBJECT ?o))
=>
        (call ?o setValueById (get-member A VAR))
)

I get an exception when the rule fires:
  Message: No overloading of method 'setValueById' in class A I can call
with these arguments: (call ?o setValueById (get-member A VAR)).

I think the problem here is that 'get-member' does not return an external
address, but has translated it to a Jess Integer type.

Is this expected, and, if so, is there a way to prevent that automatic
translation.

Thanks in advance

Michael Lucero
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to