Hi Rudolph,

Note that the patch below was for Jess 4.3, the release, version, not
5.0a2, the experimental snapshot (as I said.) The patch for 50a2 would
be totally different, since clearing and resetting works differently
(although the error is conceptually the same.) To fix that version,
find the routine eventHappened in jess/Deffacts.java and change it to
look like this:

  public void eventHappened(JessEvent je) throws ReteException
  {
    switch(je.getType())
    {
      case JessEvent.RESET:
      {
        Rete engine = (Rete) je.getSource();
        for (int j=0; j<m_facts.size(); j++) 
          {
            engine.assert((ValueVector) m_facts.elementAt(j));
          }
        break;
      }
      case JessEvent.CLEAR:
      {
        ((Rete) je.getSource()).removeJessListener(this);
        break;
      }
    }      
  }

But I don't want to make a habit of doing point fixes for the alpha
versions: they're not SUPPOSED to be bug free.

> I think Rudolph George wrote:
> 
> In my editor (Emacs with the JDE extensions for Java) line 361 of Rete.java
> is in the middle of 
> The getOutputStream() method...
> 
>       -----Original Message-----
>       From:   Ernest Friedman-Hill [SMTP:[EMAIL PROTECTED]]
> 
>       No, it's not you - it's a bug. I only recently found this one myself
>       (It's fixed in my working copy of 5.0a3.)
> 
>       You can patch this yourself in Jess 4.3. At line 361 in
>       jess/Rete.java, add the two lines
> 
>           m_resetables.removeAllElements();
>           m_clearables.removeAllElements();
> 
>       and recompile. Thanks for pointing this out.
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 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]
---------------------------------------------------------------------

Reply via email to