Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rayokota/JSONata4Java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: IBM/JSONata4Java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 121 files changed
  • 6 contributors

Commits on Jul 6, 2026

  1. Add pluggable regex engine support (IBM#428)

    Signed-off-by: Robert Yokota <rayokota@gmail.com>
    
    Thank you for your work.
    rayokota authored Jul 6, 2026
    Configuration menu
    Copy the full SHA
    3416fe7 View commit details
    Browse the repository at this point in the history
  2. IBM#429

    wnm3 committed Jul 6, 2026
    Configuration menu
    Copy the full SHA
    ba13f67 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2026

  1. Migrate from Jackson 2.x to Jackson 3 (tools.jackson) (IBM#430) (IBM#431

    )
    
    * Add design spec for Jackson 3 migration (IBM#430)
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Add implementation plan for Jackson 3 migration (IBM#430)
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Expand version-bump scope to README and launch scripts per ReleaseProcedure.txt (IBM#430)
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Migrate from Jackson 2.x to Jackson 3 (tools.jackson) (IBM#430)
    
    Move the codebase from com.fasterxml.jackson 2.x to tools.jackson 3.2.0.
    
    - pom.xml: use tools.jackson.core:jackson-databind and
      tools.jackson.dataformat:jackson-dataformat-xml 3.2.0; remove the
      Jackson 2.x databind and dataformat-xml deps (woodstox-core retained);
      bump project version 2.6.4 -> 3.0.0.
    - Package/class/method renames across main and test sources:
      com.fasterxml.jackson.* -> tools.jackson.*, TextNode -> StringNode,
      JsonFactory -> tools.jackson.core.json.JsonFactory,
      JsonProcessingException -> JacksonException,
      JsonMappingException -> DatabindException, immutable mapper builders.
    
    Behavior-preserving fixes for Jackson 3 default/API changes (no test
    assertion or expected value was changed):
    - MatchFunction/ReplaceFunction: guard the pattern emptiness checks so a
      POJONode-wrapped RegularExpression never reaches the now-throwing
      asText(); logic is identical to Jackson 2.
    - ArrayUtils.compare: pass "" default to asText() so container operands
      coerce to "" as they did under Jackson 2 instead of throwing.
    - AgnosticTestSuite: normalize whole-number doubles with (long) d,
      replicating Jackson 2's silent narrowing (Jackson 3's asLong() throws
      on out-of-long-range values).
    - Utils test mapper: disable FAIL_ON_TRAILING_TOKENS to restore the
      Jackson 2 default so existing test inputs parse identically.
    - catch (IOException) -> catch (JacksonException) where Jackson 3 methods
      no longer throw checked IOException.
    - README and launch scripts (tester.sh, testerui.sh, testerui.cmd):
      version 2.6.4 -> 3.0.0.
    
    Verified: mvn clean test green (1223 tests, 0 failures, 93 skipped);
    mvn package builds JSONata4Java-3.0.0.jar with an OSGi Import-Package
    header referencing only tools.jackson.* [3.2,4); Tester CLI evaluation
    and XML round-trip smoke-tested.
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Document retained Jackson 2 behaviors and known issues (IBM#430)
    
    - Add a "Retained Jackson 2 behaviors (as-built)" section to the design
      spec listing each compatibility decision (container asText(""),
      POJONode emptiness guards, (long) d narrowing, FAIL_ON_TRAILING_TOKENS,
      unchecked-exception catches), plus the pre-existing Tester EOF NPE and
      the acceptable transitive jackson-annotations dependency.
    - Add explanatory comments at the MatchFunction/ReplaceFunction guard
      sites so the isTextual()-guarded emptiness checks are self-documenting.
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Fix out-of-range numeric coercion and related Jackson 3 fail-fast crashes (IBM#433)
    
    Jackson 3 makes asInt()/asLong()/textValue()/asBoolean() fail-fast: they
    throw JsonNodeException for out-of-range or wrong-type nodes where Jackson 2
    silently narrowed/coerced. Several unchanged call sites therefore flipped from
    "return a value" to "crash with a raw Jackson exception". Fix them to use the
    widest-safe representation (BigInteger/double) or a controlled JSONata error,
    matching jsonata.org 2.2.1 where known.
    
    IBM#433 numeric coercion:
    - ExpressionsVisitor.isWholeNumber(JsonNode): use the double overload instead
      of asInt()==asDouble() (threw for integral doubles > int range, e.g. 1e19).
    - Array index: only select when canConvertToInt(); out-of-int-range indices are
      out of bounds and select nothing (e.g. ["a","b"][3000000000] -> undefined).
    - Range visitSeq: compute bounds and size with BigInteger, raising the controlled
      "sequence too big" error for [1..1e19]/[1..3000000000] (also fixes a latent int
      count overflow).
    - Unary minus: negate an out-of-long-range BigIntegerNode exactly.
    - Equality (=) and ordering (< > <= >=): compare integral operands via exact
      bigIntegerValue(), hardening the same crash class on BigInteger operands.
    - SumFunction: oversized integral elements fall back to the double-sum path.
    - FromMillis/FromMillisZoned: convert an out-of-range magnitude to a controlled
      "Number out of range" error while preserving fractional-millis truncation.
    - FormatBase: use the full long value + Long.toString instead of a 32-bit int
      ($formatBase(5890840712243076) -> "5890840712243076", was "1008002948").
    
    Related migration compatibility fixes swept in:
    - JoinFunction (IBM#434): every element must be a string; error on any non-string
      (including nested arrays) instead of flattening, matching the reference and
      avoiding textValue() throwing.
    - BooleanUtils: return false for a BinaryNode (JSON/reference has no binary type;
      Jackson 3's no-arg asBoolean() throws) consistent with prior behavior.
    - Ordering operators: array/object operands raise "must evaluate to numeric or
      string values" rather than returning null.
    
    Adds BasicExpressionsTests.testOutOfRangeNumericCoercion documenting the fixed
    behavior. Full suite: 1223 run, 0 failures, 0 errors, 93 skipped.
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Fix Maven build warnings in pom.xml
    
    - Export com.api.jsonata4java.expressions.regex so bnd no longer flags
      it as a private reference leaked through the public API of the
      com.api.jsonata4java and com.api.jsonata4java.expressions exports.
    - Remove empty <additionalClasspathElements/> from maven-compiler-plugin
      (not a valid parameter for that plugin).
    - Remove <excludes> from maven-assembly-plugin single goal (not a valid
      parameter; exclusions belong in an assembly descriptor).
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Document Maven build-warning cleanup in migration design doc (IBM#430)
    
    Record the pom.xml build-warning fixes (bnd private-reference exports,
    invalid maven-compiler-plugin/maven-assembly-plugin parameters) and note
    that the gpg.passphrase deprecation originates from local settings.xml,
    not the project pom.
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    * Ignore local .superpowers/ tooling directory
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    
    ---------
    
    Signed-off-by: wnm3 <wnm3@us.ibm.com>
    Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
    wnm3 and claude authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    01f1157 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2026

  1. Update jackson monorepo to v3.2.1 (IBM#441)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 10, 2026
    Configuration menu
    Copy the full SHA
    4c08c32 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. Update dependency org.apache.maven.plugins:maven-jar-plugin to v3.5.1 (…

    …IBM#442)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    9d832df View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2026

  1. Fix open security alerts

    - Bump jackson-databind and jackson-dataformat-xml from 3.2.1 to 3.2.3
      to resolve Dependabot alerts IBM#8-IBM#12 (DoS issues, incomplete
      PolymorphicTypeValidator denylist, Path deserialization scheme checks).
    - Restrict the CI workflow token to `contents: read`
      (code scanning alert actions/missing-workflow-permissions).
    - Replace implicit double-to-int compound assignment in
      DateTimeUtils.lettersToDecimal with integer arithmetic
      (code scanning alert java/implicit-cast-in-compound-assignment).
    
    Signed-off-by: Radu Florian <raduf@us.ibm.com>
    hansolosan committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    5529a24 View commit details
    Browse the repository at this point in the history
  2. Merge pull request IBM#463 from IBM/fix/security-alerts

    Fix open security alerts
    hansolosan authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    8accd6f View commit details
    Browse the repository at this point in the history
Loading