Singular Systems

GWTJep


GWT-Jep compatibility

GWT-Jep is mostly compatible with the Jep 4.1 release, apart from the following changes:

  • Only the ConfigurableParser and StandardConfigurableParser are supported and not the JavaCC based StandardParser.
  • 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 using Observable 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 the com.singularsys.compatibility package.
    • Google compatibility classes com.google.gwt.i18n.client.NumberFormat, used.
    • Simple re-implementations of Pattern and Matcher are provided these only implement the Matcher.lookingAt() method and not Matcher.find(). These use com.google.gwt.regexp.shared.RegExp class.
    • Some change in the format of message in Exceptions.
  • 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>) and com.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. The com.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 removed
  • com.singularsys.jepexamples.diagnostics.ExamineSizes
  • com.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTest
  • com.singularsys.jepexamples.diagnostics.ThreadSpeedTest