Title: $formatNumber: invalid picture patterns leak raw java.lang.IllegalArgumentException / miss validation (jsonata 2.2.1) · Issue #437 · IBM/JSONata4Java · GitHub
Open Graph Title: $formatNumber: invalid picture patterns leak raw java.lang.IllegalArgumentException / miss validation (jsonata 2.2.1) · Issue #437 · IBM/JSONata4Java
X Title: $formatNumber: invalid picture patterns leak raw java.lang.IllegalArgumentException / miss validation (jsonata 2.2.1) · Issue #437 · IBM/JSONata4Java
Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). These are pre-existing functional-compatibility gaps vs the reference implementation (try.jsonata.org 2.2.1),...
Open Graph Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). These are pre-existing functional-compatibility gaps vs the reference...
X Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). These are pre-existing functional-compatibility gaps vs the reference...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$formatNumber: invalid picture patterns leak raw java.lang.IllegalArgumentException / miss validation (jsonata 2.2.1)","articleBody":"Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). These are pre-existing functional-compatibility gaps vs the reference implementation (try.jsonata.org 2.2.1), not regressions introduced by the migration.\n\n`$formatNumber` mishandles several invalid/edge picture strings — either leaking a raw `java.lang.IllegalArgumentException` (rather than a JSONata `EvaluateException`) or producing output the reference rejects.\n\n| Expression | JSONata4Java | jsonata.org 2.2.1 |\n|---|---|---|\n| `$formatNumber(42, \"%%\")` | raw `java.lang.IllegalArgumentException: Too many percent/per mille characters` | error (well-formed JSONata error) |\n| `$formatNumber(42, \"‰‰\")` | raw `java.lang.IllegalArgumentException: Too many percent/per mille characters` | error |\n| `$formatNumber(42, \"%‰\")` | raw `java.lang.IllegalArgumentException: Too many percent/per mille characters` | error |\n| `$formatNumber(42, \"---\")` | returns `\"---42\"` | error (invalid picture) |\n\nExpected: these should raise a proper JSONata `EvaluateException` (D3080-class picture-string error) rather than leaking an internal Java exception or silently accepting an invalid picture.\n\nReference: jsonata-js 2.2.1.","author":{"url":"https://github.com/wnm3","@type":"Person","name":"wnm3"},"datePublished":"2026-07-07T19:05:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/437/JSONata4Java/issues/437"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25ce9e1b-1b09-9049-5a29-aabb19215f61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEDC:35A293:294197:3AB6D8:6A4E6789 |
| html-safe-nonce | a58775bbb1dd1ae22179918d15768c3562b17949269ebb5365373fab297e8c9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERURDOjM1QTI5MzoyOTQxOTc6M0FCNkQ4OjZBNEU2Nzg5IiwidmlzaXRvcl9pZCI6Ijg0MjQzMzMyNDMzOTg5MDc3ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 81412321e68ec26bb809c09c602f38aaf15bc4d05e947debcaf03cda6da9882f |
| hovercard-subject-tag | issue:4831436676 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IBM/JSONata4Java/437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c0c901c3498c0d49ff5e14795071a67194cca75c45c76189a05f0e3bd7120f2/IBM/JSONata4Java/issues/437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c0c901c3498c0d49ff5e14795071a67194cca75c45c76189a05f0e3bd7120f2/IBM/JSONata4Java/issues/437 |
| og:image:alt | Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). These are pre-existing functional-compatibility gaps vs the reference... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wnm3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git |
| octolytics-dimension-user_id | 1459110 |
| octolytics-dimension-user_login | IBM |
| octolytics-dimension-repository_id | 169904880 |
| octolytics-dimension-repository_nwo | IBM/JSONata4Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169904880 |
| octolytics-dimension-repository_network_root_nwo | IBM/JSONata4Java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width