(The heading for this message is somewhat misleading!)
Thanks for giving me this reproducible case. Longtime jess-users
subscribers know that this kind of multithreaded-input-tokenizing-GUI
problem has haunted me for ages. Java's lack of a suitable replacement
for UNIX select() leads you through all kinds of contortions to get
the seemingly very simple Console interface to work at all. I will revisit
this before 5.0 final comes out.
I think Bob Orchard wrote:
>
>
> --------------8E28616066D89D881AF08B9B
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Ernest may already be aware of this bug but since I'm not sure I thought I'd
> pass it on ... Consider the following bit of output from Jess (50a2) when using
> jess.Console:
>
> Jess> (defclass simple jess.examples.simple.Simple)
> jess.examples.simple.Simple
> Jess> (definstance simple (new jess.examples.simple.Simple "S1"))
> TRUE
> Jess> (facts)
> EOF
> Jess> Jess> (facts)
> f-0 (simple (truth FALSE) (class <External-Address:java.lang.Class>) (name "S1")
>(fraction 0.0)
> (serial 0) (OBJECT <External-Address:jess.examples.simple.Simple>))
> For a total of 1 facts.
> TRUE
>
> I've seen this happen many times in Jess50a2 and I think it has something to do with
>Strings.
> For example if I do the smae as above but use the symbol S1 instead of the string
>"S1"
> it works as expected (see below).
>
> Jess> (definstance simple (new jess.examples.simple.Simple S1))
> TRUE
> Jess> (facts)
> f-0 (simple (truth FALSE) (class <External-Address:java.lang.Class>) (name "S1")
>(fraction 0.0)
> (serial 0) (OBJECT <External-Address:jess.examples.simple.Simple>))
> For a total of 1 facts.
> TRUE
>
> In both cases this was done immediately after starting jess.Console.
>
> Cheers, Bob.
>
---------------------------------------------------------
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]
---------------------------------------------------------------------