Repository navigation
Commit 9d8a158
committed
Issue #178: refactor JsonPath into a sealed interface over the interpreted engine
Salvaged from the sealed-interface split of the Issue #128 work, reworked onto
the current jdk.incubator API: 'JsonPath' is now a public sealed interface
permitting 'JsonPathInterpreted' (the unchanged AST-walking engine, package
private, JDK 21+, no ClassFile API dependency) and 'JsonPathCompiled'. The
compiled-engine facade and its package-private 'JsonPathExecutor' land here so
the seal is complete; their construction is wired up by the ClassFile API
codegen in the following commit. All 100 existing JsonPath tests pass.
To verify: /opt/homebrew/bin/mvnd -pl json-java21-jsonpath test
-Djava.util.logging.ConsoleHandler.level=INFO (100 tests green).1 parent 9bf8d3f commit 9d8a158
4 files changed
Lines changed: 678 additions & 543 deletions
File tree
- json-java21-jsonpath/src/main/java/json/java21/jsonpath
0 commit comments