Title: Numbers are not correctly detected resulting in a NumberFormatException · Issue #31 · JavaWebStack/abstract-data · GitHub
Open Graph Title: Numbers are not correctly detected resulting in a NumberFormatException · Issue #31 · JavaWebStack/abstract-data
X Title: Numbers are not correctly detected resulting in a NumberFormatException · Issue #31 · JavaWebStack/abstract-data
Description: Describe the Bug We detected numbers based on certain characters but we don't validate that they actually match the syntax of a number. Instead of throwing a proper exception we hand the value to parseLong/parseDouble resulting in a Numb...
Open Graph Description: Describe the Bug We detected numbers based on certain characters but we don't validate that they actually match the syntax of a number. Instead of throwing a proper exception we hand the value to p...
X Description: Describe the Bug We detected numbers based on certain characters but we don't validate that they actually match the syntax of a number. Instead of throwing a proper exception we hand the value ...
Opengraph URL: https://github.com/JavaWebStack/abstract-data/issues/31
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Numbers are not correctly detected resulting in a NumberFormatException","articleBody":"**Describe the Bug**\r\nWe detected numbers based on certain characters but we don't validate that they actually match the syntax of a number. Instead of throwing a proper exception we hand the value to parseLong/parseDouble resulting in a NumberFormatException being thrown\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n```\r\nAbstractElement.fromJson(\"--\")\r\n```\r\n\r\n**Expected behavior**\r\nIt should fail fast and throw a proper exception\r\n\r\n**Screenshots / Logs**\r\nIf applicable, add screenshots and/or logs to help explain your problem. You can use pastefy.ga to upload large text snippets.\r\n\r\n**Environment Information:**\r\n - Java Language Level 8\r\n - Version 1.0.6\r\n\r\n","author":{"url":"https://github.com/JanHolger","@type":"Person","name":"JanHolger"},"datePublished":"2024-08-30T12:38:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/31/abstract-data/issues/31"}
| 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:308ebed8-73a9-a24d-6cb6-5fe239ff4b77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF10:2E632A:100BECD:14DFC96:697D483F |
| html-safe-nonce | 455452d9fbffc0956d742e21e8088591f140f5770fbb3ba5df7c05f16ddd9ce3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjEwOjJFNjMyQToxMDBCRUNEOjE0REZDOTY6Njk3RDQ4M0YiLCJ2aXNpdG9yX2lkIjoiOTYwODYyMzg0MzU0NTc2NDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f0c0c7f52cdf2aeade1a7dd9deebfbbf29cb30b671f3ac3ae1d4e15cf23a0399 |
| hovercard-subject-tag | issue:2497121301 |
| 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/JavaWebStack/abstract-data/31/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03abbd88c6bc465c4de50766e13d2af424b1e4daa26ac1a6b29c3bf670fa6ccf/JavaWebStack/abstract-data/issues/31 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03abbd88c6bc465c4de50766e13d2af424b1e4daa26ac1a6b29c3bf670fa6ccf/JavaWebStack/abstract-data/issues/31 |
| og:image:alt | Describe the Bug We detected numbers based on certain characters but we don't validate that they actually match the syntax of a number. Instead of throwing a proper exception we hand the value to p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JanHolger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaWebStack/abstract-data git https://github.com/JavaWebStack/abstract-data.git |
| octolytics-dimension-user_id | 73674659 |
| octolytics-dimension-user_login | JavaWebStack |
| octolytics-dimension-repository_id | 311194306 |
| octolytics-dimension-repository_nwo | JavaWebStack/abstract-data |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 311194306 |
| octolytics-dimension-repository_network_root_nwo | JavaWebStack/abstract-data |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width