Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor · GitHub
Open Graph Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor
X Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor
Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like this: "reference": { "type": "java.lang....
Open Graph Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ...
X Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ...
Opengraph URL: https://github.com/moosetechnology/JavaCallStackExtractor/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change the structure of object reference for the json logger","articleBody":"The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference\n\nFor example, for an array reference, the current JSON structure looks like this:\n```json\n\"reference\": {\n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"refered\": {\n \"elements\": []\n }\n}\n```\n\n- reference being an object reference \n- refered can be : \n - the fields of a class reference\n - elements of an array reference\n - value of the String reference\nThis design makes it hard to quickly understand what kind of object we’re dealing with.\n\n**Proposal 1: Flatten the structure**\nInstead of having a generic \"reference\" object with a \"refered\" field, we can directly log the specific type of reference.\nExample for an array:\n```json\n\"ArrayReference\":{\n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"elements\": []\n}\n```\nThis way, there’s no extra “wrapper” for all ObjectReference types.\n\n**Proposal 2: Keep a wrapper but be explicit**\nIf we still want a generic ObjectReference container, we can make the type explicit inside it:\n\n```json\n\"ObjectReference\":{ \n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"ArrayReference\":{\n \"elements\": []\n }\n}\n```\n\nThis option could be helpfull for the importer for FamixCallStack, but is less space efficient for the outputted file","author":{"url":"https://github.com/LeoDefossez","@type":"Person","name":"LeoDefossez"},"datePublished":"2025-08-11T12:04:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/JavaCallStackExtractor/issues/5"}
| 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:6179f17a-80fa-5a00-3a32-0bafb6093241 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C258:125966:1FD0FC:2973C1:698D0AAB |
| html-safe-nonce | bd77a33040073969108e89cc93fa446868ab4d61d0e1ab31c979adcffb0591c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjU4OjEyNTk2NjoxRkQwRkM6Mjk3M0MxOjY5OEQwQUFCIiwidmlzaXRvcl9pZCI6IjI0MTIzOTA5NzA1MjU4MTM0MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 141109ad4757c19d59613d33e3992ef1734eef795ec5b50fcc31f28414dc6669 |
| hovercard-subject-tag | issue:3309740067 |
| 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/moosetechnology/JavaCallStackExtractor/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c31849bcc568c557200b3a16ebf25e553d23f308342cded65c27c739fdc12c9b/moosetechnology/JavaCallStackExtractor/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c31849bcc568c557200b3a16ebf25e553d23f308342cded65c27c739fdc12c9b/moosetechnology/JavaCallStackExtractor/issues/5 |
| og:image:alt | The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LeoDefossez |
| hostname | github.com |
| expected-hostname | github.com |
| None | f2da95634bce8a94cfa4123788169bfabdf845fd1d790fbaaaaab09dcfebdf28 |
| turbo-cache-control | no-preview |
| go-import | github.com/moosetechnology/JavaCallStackExtractor git https://github.com/moosetechnology/JavaCallStackExtractor.git |
| octolytics-dimension-user_id | 13623321 |
| octolytics-dimension-user_login | moosetechnology |
| octolytics-dimension-repository_id | 1013615922 |
| octolytics-dimension-repository_nwo | moosetechnology/JavaCallStackExtractor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1013615922 |
| octolytics-dimension-repository_network_root_nwo | moosetechnology/JavaCallStackExtractor |
| 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 | 311e6780106f89302807c2d4e7790575cc939515 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width