Revision as of 21:14, 31 May 2009 by Kevin Reid
deSubgraphKit is the Data-E kit which deals with actual objects.
? def deSubgraphKit := <import:org.erights.e.elib.serial.deSubgraphKit> # value: <deSubgraphKit>
? def r := deSubgraphKit.makeRecognizer(null, [ > "foo" => 0, # Integer should not refer to a temporary, but error > "bar" => null, # Null should not be treated as nonexistent, but error > "baz" => "false", # Normal entry, for comparison > ]); null ? r.recognize("foo", deSubgraphKit.makeBuilder()) # problem: <ClassCastException: Integer doesn't coerce to a String> ? r.recognize("bar", deSubgraphKit.makeBuilder()) # problem: <NullPointerException: must be a String rather than null>
? r.recognize("baz", deSubgraphKit.makeBuilder()) # value: false
XXX The above errors are E-on-Java-specific wording.