GWT-Jep compatibility
GWT-Jep is mostly compatible with the Jep 4.1 release, apart from the following changes:
- Only the
ConfigurableParserandStandardConfigurableParserare supported and not the JavaCC basedStandardParser. - There is no support for Serialization, the
SerializableExpressionclass has been removed, and some serialization specific methods have been removed. - Since Java 9 the
java.util.Observablehas been deprecated. Code usingObservablemechanism 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
BufferedReaderare provided in thecom.singularsys.compatibilitypackage. - Google compatibility classes com.google.gwt.i18n.client.NumberFormat, used.
- Simple re-implementations of
PatternandMatcherare 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
JepMessagesis re-implemented to use GWT Messages mechanism. com.singularsys.jepexamples.consoles.Consoleand other consoles do not read from the standard input. Thecom.singularsys.client.GWTConsoleallows input from a text field.- Some change in in messages in the
com.singularsys.jepexamples.diagnosticsformat - The JUnit tests in
com.singularsys.jeptestsgenerally do not currently work, hopefully fixed in next release
Removed classes
com.singularsys.jep.misc.boundvariablepackage is removed.com.singularsys.jep.misc.functions.IsTypecom.singularsys.jep.misc.threadsafeeval.ThreadSafeRandomcom.singularsys.jep.walkers.SerializableExpressioncom.singularsys.jep.parserseveral classes used by the StandardParser removed.com.singularsys.jepexamples.appletspackage is removedcom.singularsys.jepexamples.diagnostics.ExamineSizescom.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTestcom.singularsys.jepexamples.diagnostics.ThreadSpeedTest