GWT-Jep compatibility
GWT-Jep is mostly compatible with the Jep 4.1 release, apart from the following changes:
- Only the
ConfigurableParser
andStandardConfigurableParser
are supported and not the JavaCC basedStandardParser
. - There is no support for Serialization, the
SerializableExpression
class has been removed, and some serialization specific methods have been removed. - Since Java 9 the
java.util.Observable
has been deprecated. Code usingObservable
mechanism has been removed. - Some method names have been changed to correct spelling errors.
- Javascript has no integer datatype so any calculations that would use integers are performed as doubles.
- Not all the standard Java API is provided by GWT, see
JRE Emulation
- Simple re-implementations some of the missing classes, like
BufferedReader
are provided in thecom.singularsys.compatibility
package. - Google compatibility classes com.google.gwt.i18n.client.NumberFormat, used.
- Simple re-implementations of
Pattern
andMatcher
are provided these only implement theMatcher.lookingAt()
method and notMatcher.find()
. These use com.google.gwt.regexp.shared.RegExp class. - Some change in the format of message in Exceptions.
- Simple re-implementations some of the missing classes, like
- New line character in parsed expression assumed to be
\n
- The methods
com.singularsys.jep.functions.BinaryFunction.instanceOf(Class<T>, BiFunction<T, T, ? super Object>)
andcom.singularsys.jep.functions.UnaryFunction.instanceOf(Class<T>, Function<T, ? super Object>)
do not work. - The
JepMessages
is re-implemented to use GWT Messages mechanism. com.singularsys.jepexamples.consoles.Console
and other consoles do not read from the standard input. Thecom.singularsys.client.GWTConsole
allows input from a text field.- Some change in in messages in the
com.singularsys.jepexamples.diagnostics
format - The JUnit tests in
com.singularsys.jeptests
generally do not currently work, hopefully fixed in next release
Removed classes
com.singularsys.jep.misc.boundvariable
package is removed.com.singularsys.jep.misc.functions.IsType
com.singularsys.jep.misc.threadsafeeval.ThreadSafeRandom
com.singularsys.jep.walkers.SerializableExpression
com.singularsys.jep.parser
several classes used by the StandardParser removed.com.singularsys.jepexamples.applets
package is removedcom.singularsys.jepexamples.diagnostics.ExamineSizes
com.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTest
com.singularsys.jepexamples.diagnostics.ThreadSpeedTest