René's URL Explorer Experiment


Title: Jackson 3: unguarded textValue()/asBoolean() throw where Jackson 2 returned defaults (JoinFunction, BooleanUtils) · Issue #434 · IBM/JSONata4Java · GitHub

Open Graph Title: Jackson 3: unguarded textValue()/asBoolean() throw where Jackson 2 returned defaults (JoinFunction, BooleanUtils) · Issue #434 · IBM/JSONata4Java

X Title: Jackson 3: unguarded textValue()/asBoolean() throw where Jackson 2 returned defaults (JoinFunction, BooleanUtils) · Issue #434 · IBM/JSONata4Java

Description: Summary Two unguarded coercion call sites changed behavior under the Jackson 3 migration (#430, PR #431). Jackson 3 tightened textValue() (now stringValue(), throws for any non‑String node) and the no‑arg asBoolean() (throws for non‑coer...

Open Graph Description: Summary Two unguarded coercion call sites changed behavior under the Jackson 3 migration (#430, PR #431). Jackson 3 tightened textValue() (now stringValue(), throws for any non‑String node) and the...

X Description: Summary Two unguarded coercion call sites changed behavior under the Jackson 3 migration (#430, PR #431). Jackson 3 tightened textValue() (now stringValue(), throws for any non‑String node) and the...

Opengraph URL: https://github.com/IBM/JSONata4Java/issues/434

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Jackson 3: unguarded textValue()/asBoolean() throw where Jackson 2 returned defaults (JoinFunction, BooleanUtils)","articleBody":"## Summary\n\nTwo unguarded coercion call sites changed behavior under the Jackson 3 migration (#430, PR #431). Jackson 3 tightened `textValue()` (now `stringValue()`, throws for **any** non‑String node) and the no‑arg `asBoolean()` (throws for non‑coercible node types). Jackson 2 returned `null` / `false` respectively. These lines were not changed by the migration, so behavior flipped from \"return default\" to \"throw `tools.jackson.databind.node.JsonNodeException`\".\n\nNot caught by the test suite.\n\n## Where \u0026 reproductions\n\n### 1. `JoinFunction.java:121` — `textValue()` on non‑string inner element\n\n```java\n} else if (element.isArray()) {\n    for (Iterator\u003cJsonNode\u003e it = ((ArrayNode) element).iterator(); it.hasNext();) {\n        stringJoiner.add(it.next().textValue());   // \u003c-- no isTextual() guard\n    }\n}\n```\n\nNote the outer element at line 117 **is** guarded (`element.isTextual()`), but the inner loop at 121 is not.\n\n- Repro: `$join([[1, 2]])`\n- Jackson 2: `textValue()` returns `null` → `StringJoiner` appends `\"null\"` → result `\"nullnull\"`.\n- Jackson 3: **throws** `JsonNodeException`.\n\n### 2. `BooleanUtils.java:89` — `asBoolean()` on a `BinaryNode`\n\n```java\ncase BINARY:\n    return node.asBoolean();\n```\n\n- Jackson 2: returns the default `false` for a `BinaryNode`.\n- Jackson 3: **throws** `JsonNodeException`.\n- Lower reachability (requires a `BinaryNode` reaching `$boolean(...)`), but it is an unguarded no‑arg coercion of exactly the kind this migration must audit.\n\n## Verified empirically against jackson‑databind 3.2.0\n\n```\nIntNode(5).textValue()    -\u003e THROWS JsonNodeException\nBinaryNode.asBoolean()    -\u003e THROWS JsonNodeException\n```\n\n## Related minor note (low priority)\n\n`ArrayUtils.compare` (line 105, changed in this PR) now uses `asText(\"\")`. For a container node this correctly restores the Jackson‑2 `\"\"`, but for a `POJONode` it returns `\"\"` where Jackson 2 returned the POJO's `toString()`. Reachability is very low ($sort over a regex `POJONode` is not a realistic user path), so this is noted rather than treated as a separate defect.\n\n## Suggested fix\n\nAdd an `isTextual()` guard at `JoinFunction:121` (matching line 117) — decide whether a non‑string inner element should stringify via the JSONata number/string rules or raise the existing `ERR_MSG_ARG1_ARR_STR`. For `BooleanUtils:89`, return `false` explicitly for the `BINARY` case rather than delegating to the now‑throwing `asBoolean()`.\n","author":{"url":"https://github.com/wnm3","@type":"Person","name":"wnm3"},"datePublished":"2026-07-07T16:39:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/434/JSONata4Java/issues/434"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c59230a5-014d-04fa-1e24-e2932f9bc9fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB47C:2C2A02:E5E949:13583F0:6A4F0267
html-safe-noncec358d3bc7e84eb4f63d7da61afadd4268ac7f35a5a76f0f4645876a23f675d9c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDdDOjJDMkEwMjpFNUU5NDk6MTM1ODNGMDo2QTRGMDI2NyIsInZpc2l0b3JfaWQiOiI5MTkwMDk4OTQ4NDcxMDYzMTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac94fda4e2c44b210d45d5159d6e64e54a1e2208bc4014d8dc79871f8cfefbd84c
hovercard-subject-tagissue:4830453799
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IBM/JSONata4Java/434/issue_layout
twitter:imagehttps://opengraph.githubassets.com/17ab3615a473bae8927c6a1372d105d3f2e88880bbb09491301c7bfb5a2e449f/IBM/JSONata4Java/issues/434
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17ab3615a473bae8927c6a1372d105d3f2e88880bbb09491301c7bfb5a2e449f/IBM/JSONata4Java/issues/434
og:image:altSummary Two unguarded coercion call sites changed behavior under the Jackson 3 migration (#430, PR #431). Jackson 3 tightened textValue() (now stringValue(), throws for any non‑String node) and the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewnm3
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git
octolytics-dimension-user_id1459110
octolytics-dimension-user_loginIBM
octolytics-dimension-repository_id169904880
octolytics-dimension-repository_nwoIBM/JSONata4Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id169904880
octolytics-dimension-repository_network_root_nwoIBM/JSONata4Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IBM/JSONata4Java/issues/434#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F434
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F434
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IBM%2FJSONata4Java
Reloadhttps://github.com/IBM/JSONata4Java/issues/434
Reloadhttps://github.com/IBM/JSONata4Java/issues/434
Reloadhttps://github.com/IBM/JSONata4Java/issues/434
Please reload this pagehttps://github.com/IBM/JSONata4Java/issues/434
IBM https://github.com/IBM
JSONata4Javahttps://github.com/IBM/JSONata4Java
Notifications https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Fork 41 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Star 128 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Code https://github.com/IBM/JSONata4Java
Issues 80 https://github.com/IBM/JSONata4Java/issues
Pull requests 0 https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality 0 https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Code https://github.com/IBM/JSONata4Java
Issues https://github.com/IBM/JSONata4Java/issues
Pull requests https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Jackson 3: unguarded textValue()/asBoolean() throw where Jackson 2 returned defaults (JoinFunction, BooleanUtils)https://github.com/IBM/JSONata4Java/issues/434#top
bugSomething isn't workinghttps://github.com/IBM/JSONata4Java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/wnm3
wnm3https://github.com/wnm3
on Jul 7, 2026https://github.com/IBM/JSONata4Java/issues/434#issue-4830453799
#430https://github.com/IBM/JSONata4Java/issues/430
#431https://github.com/IBM/JSONata4Java/pull/431
bugSomething isn't workinghttps://github.com/IBM/JSONata4Java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.