Hi,
Thanks for bringing this up. I've only recently become aware of this
issue. In the final release of Jess 6.0, the assert() methods will be
deprecated, with a new set named assertFact(). But in any case, note
that what you received were -warnings-, not errors, and there is
absolutely no problem in using Jess with the JDK 1.4 beta.
Here's an excerpt from the JDK 1.4 release notes which explains what's
going on. Again, note that the default behaviour is for everything to
work just fine.
12. The assert keyword has been added to the Java Programming
Language in J2SE 1.4. Because of the new keyword, existing programs
that use "assert" as an identifier will not be in conformance with
J2SE 1.4. The addition of this keyword does not, however, cause any
problems with the use of preexisting binaries (.class files). In order
to ease the transition from pre-J2SE 1.4 releases in which assert is a
legal identifier to J2SE 1.4 where it isn't, the Javac bytecode
compiler supports two modes of operation in J2SE 1.4.
* In the normal mode of operation, the compiler accepts programs
conforming to the specification for the previous release (J2SE
1.3). Assertions are not permitted, and the compiler generates a
warning if the assert keyword is used as an identifier.
* In an alternate mode of operation, the compiler accepts
programs conforming to the specification for J2SE 1.4. Assertions are
permitted, and the compiler generates an error message if the assert
keyword is used as an identifier.
To enable assertions, use the following command line switch.
-source 1.4
In the absence of this flag, the behavior defaults to "1.3" for
maximal source compatibility. Support for 1.3 source compatibility is
likely to be phased out over time.
I think Ru wrote:
> Hello jess-users,
>
> While compiling Jess with jdk1.4 got some 16 messages like this:
> "jess\Deffacts.java:98: warning: as of release 1.4, assert is a
> keyword, and may not be used as identifier .."
> What to do? Thanx in advance.
>
> --
> Best regards,
> Ru mailto:[EMAIL PROTECTED]
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [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 (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------