Hi,
I'm helping a client that's currently on a very old Jess 7.0 (b2 I
believe) upgrade to the 7.1p2 version.  The existing jess code imports
some 'constructed' pre- Java 1.5 enums of the form

public class MyEnum {

    public final static ENUMVAL1 = new MyEnum(..);
}

In the 7.0b Jess code we were able to (import) the MyEnum and
reference ENUMVAL1 in expressions like:
...
exists (com.somepkg.SomeClass
            {myEnum  != MyEnum.ENUMVAL1})
..

Jess 7.1 is not happy about this and reports "Message: Variable used
before definition: MyEnum."

Just want to verify based on my reading of the latest docs but it
seems that this:

{myEnum  != MyEnum.ENUMVAL1}

should be replaced with something like this:

{myEnum  != (get-member MyEnum ENUMVAL1)}

Is this the correct way to address this ?

Thanks In Advance,
Erich


--------------------------------------------------------------------
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