Repository navigation
Description
Summary
Neo4j::Driver 1.02 returns an unexpected false value for a Neo4j boolean property on PerlOnJava. Its upstream test for false fails on both PerlOnJava backends, although it passes under system Perl 5.42.2.
The observed mismatch is:
got: ''
expected: '0'
This is specific to the Neo4j result path exercised by the test. A standalone JSON::PP decode of false, compared with JSON::PP::false and the string "0", passes on both PerlOnJava backends, so the failure should not be assumed to originate in JSON::PP::Boolean itself.
CPAN evidence
- Distribution:
Neo4j-Driver1.02 (Neo4j::Driver) - CPAN run:
20261109-091152-39587 - Failing test:
t/types.t, subtestProperty types: scalar type semantics, assertionfalse(line 56 in the release) - PerlOnJava result: 209/210 assertions pass; 1/21 test programs fails
- System Perl: all 21 test files and 210 assertions pass under Perl 5.42.2
- Backends: reproduced on both JVM and interpreter
- Environment: the upstream test uses its bundled Neo4j HTTP simulator when no Neo4j password is configured; no external Neo4j service is required for this case
- Native code: the target distribution is pure Perl; no XS/native prerequisite is involved
The focused upstream t/types.t also passes on system Perl and fails on both PerlOnJava backends in the archived build environment.
Reproducer
Run the unmodified upstream t/types.t from Neo4j-Driver-1.02 with its normal lib and t/lib paths and dependencies available:
perl -Ilib -It/lib t/types.tWith no TEST_NEO4J_PASSWORD, Neo4j_Test uses the distribution's local simulator. The failing assertion is:
is $r->get(6), JSON::PP::false, 'false';Expected: all assertions pass, as on system Perl.
Observed on PerlOnJava: got: '', expected: '0' for the false value on both execution backends.
Related issues and duplicate check
- JSON boolean sentinel $JSON::true becomes undef on both backends #1392 fixed exposure of
$JSON::trueand$JSON::falsefrom the bundledJSONdispatcher. This report concerns the value returned by the Neo4j result path; the dispatcher sentinel fix does not reproduce or cover it. - Preserve numeric scalar typing when decoding JSON #1260 and Preserve Perl scalar dual-value semantics for numeric zero #1262 concern JSON numeric scalar flags and numeric-zero dual-value behavior, respectively; neither covers this false-property assertion.
- GitHub all-state searches for
Neo4j::Driver false,Neo4j boolean Jolt,JSON boolean, andJSON::PP booleanfound no existing issue for this failure.
Expected behavior
The decoded false property should compare with JSON::PP::false as it does under system Perl. Add a project-owned regression test that reproduces the Neo4j result conversion using a small local fixture, validates the expected behavior with system Perl first, and passes on both PerlOnJava backends. Investigate the result conversion and boolean representation boundary before changing the general JSON::PP::Boolean contract.
Activity
fglock commentedon Nov 11, 2026
State: active
Agent/session: Codex root-runtime-semantics-20261111
Scope: #2017 false Neo4j property conversion and stringification.
Work:
fix/runtime-semantics-2007-2017-2006-1980, based on308a379fc; added JSON boolean equality handling for native booleans compared with JSON::PP/Cpanel/JSON::XS boolean objects and a project regression.Checkpoint: 2026-11-11 UTC.
neo4j_false_property_boolean.tpasses on system Perl and both PerlOnJava backends. The unmodified Neo4j-Driver 1.02t/types.tpasses on system Perl and now passes on PerlOnJava; see/tmp/neo4j-types-system-542.logand/tmp/neo4j-types-jperl-after.log. Fullnice -n 19 timeout 3600 makeandmake check-linkspass. The test does not change builtin false stringification.Blockers: none.
Next: include in the combined pull request after final tree review.
fglock commentedon Nov 12, 2026
Resolved in merged PR #2028. Native booleans now compare consistently with JSON booleans on both backends, without changing builtin false stringification. The focused regression and unmodified Neo4j-Driver t/types.t pass. Closing this report.