I think Al Davis wrote:
>
> I ran across a small bug (squish)...
>
> It appears that in certain cases some activations are not removed
> during a reset. The attachment is a simple Jess batch file which
> illustrates this situation.
>
;; EJFH - abridged form of above-mentioned file which displays the bug
(deffacts makeFacts
(hello one)
(hello two)
)
(defrule rule1
(hello ?n)
=>
(printout t "hello from " ?n crlf)
)
(watch activations)
(reset)
(reset)
(run)
> If this has already been discovered, please ignore this message.
Ouch! This wasn't small at all (at least, effect-wise.) Glad you caught
this one. One-line fix: jess/NodeTerm.java:96 -
was
for (int i = 0; i<m_activations.size(); i++)
should be
for (int i = m_activations.size()-1; i>=0; i--)
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (510) 294-2154
Sandia National Labs FAX: (510) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------