René's URL Explorer Experiment


Title: StackOverflow in JSONObject · Issue #264 · stleary/JSON-java · GitHub

Open Graph Title: StackOverflow in JSONObject · Issue #264 · stleary/JSON-java

X Title: StackOverflow in JSONObject · Issue #264 · stleary/JSON-java

Description: I noticed this when updating one of the libraries in our project. I used to serialise a dto which extends another one. This super class has a getter returning an Apache FastDateFormat, which is a singleton and returning a static instance...

Open Graph Description: I noticed this when updating one of the libraries in our project. I used to serialise a dto which extends another one. This super class has a getter returning an Apache FastDateFormat, which is a s...

X Description: I noticed this when updating one of the libraries in our project. I used to serialise a dto which extends another one. This super class has a getter returning an Apache FastDateFormat, which is a s...

Opengraph URL: https://github.com/stleary/JSON-java/issues/264

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"StackOverflow in JSONObject","articleBody":"I noticed this when updating one of the libraries in our project. I used to serialise a dto which extends another one. This super class has a getter returning an Apache `FastDateFormat`, which is a singleton and returning a static instance of itself.\n\nPreviously this wasn't an issue because the JSONObject (JSONArray in my case) took a boolean specifying whether to `includeSuperClass` or not. By default, that was `false` and only the child class was serialised. The parameter is now gone and the default behaviour is that the super class is serialised as well. Hence my issue came up.\n\nGiven this class\n\n``` java\npublic class StackOverflow {\n\n   public static void main(String[] args) {\n    //  final org.apache.commons.lang.time.FastDateFormat fdf = org.apache.commons.lang.time.FastDateFormat.getInstance();\n      final MyDto dto = new MyDto(\"myvalue\");\n      new org.json.JSONObject(dto);\n   }\n}\n```\n\nWhich uses these\n\n``` java\npublic class MyDto {\n\n   private String value1;\n   private StaticMethodClass smc = StaticMethodClass.getInstance();\n\n   public MyDto(String value1) { this.value1 = value1; }\n   public String getValue1() {  return value1;  }\n   public void setValue1(String value1) {   this.value1 = value1;  }\n   public StaticMethodClass getSmc() { return smc; }\n   public void setSmc(StaticMethodClass smc) {  this.smc = smc; }\n}\n\npublic class StaticMethodClass {\n\n   private static StaticMethodClass _instance;\n\n   private StaticMethodClass() {}\n\n   public static StaticMethodClass getInstance() {\n      if (_instance == null) _instance = new StaticMethodClass();\n      return _instance;\n   }\n}\n```\n\nSerializing the `getInstance` method will cause a stack overflow in JSONObject since it keeps being wrapped in JSONObjects (In theory, you can keep doing StaticMethodClass.getInstance().getInstance().getInstance().getInstance()...)\n\nOf course, serialising an instance of StaticMethodClass would cause a Stackoverflow as well.\n","author":{"url":"https://github.com/auricgoldfinger","@type":"Person","name":"auricgoldfinger"},"datePublished":"2016-08-10T07:01:19Z","url":"https://github.com/stleary/JSON-java/issues/264"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:15d3d36f-7ff6-63c2-2b22-f00feb17bd67
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C54:2E24C3:21DFA1D:2F33E08:6AFD2C09
html-safe-nonce84781b840f97d7956bb21a75dc18a69a18794e5718792f4a1ce8b7ecb1609f58
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzU0OjJFMjRDMzoyMURGQTFEOjJGMzNFMDg6NkFGRDJDMDkiLCJ2aXNpdG9yX2lkIjoiNDYzNDk3OTU3MzQ4ODc1Nzc2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6be64010ddc2fcf3dd7df45d3d182cb677e268f31f126c078497b5974338a021
hovercard-subject-tagissue:170343408
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/stleary/JSON-java/264/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f59262f7c73470233e53562d01c452f0384712a0d8fb3167d4802f3c6d6e19f6/stleary/JSON-java/issues/264
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f59262f7c73470233e53562d01c452f0384712a0d8fb3167d4802f3c6d6e19f6/stleary/JSON-java/issues/264
og:image:altI noticed this when updating one of the libraries in our project. I used to serialise a dto which extends another one. This super class has a getter returning an Apache FastDateFormat, which is a s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameauricgoldfinger
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
go-importgithub.com/stleary/JSON-java git https://github.com/stleary/JSON-java.git
octolytics-dimension-user_id5107558
octolytics-dimension-user_loginstleary
octolytics-dimension-repository_id1187853
octolytics-dimension-repository_nwostleary/JSON-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1187853
octolytics-dimension-repository_network_root_nwostleary/JSON-java
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/stleary/JSON-java/issues/264#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F264
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F264
Sign uphttps://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=stleary%2FJSON-java
Reloadhttps://github.com/stleary/JSON-java/issues/264
Reloadhttps://github.com/stleary/JSON-java/issues/264
Reloadhttps://github.com/stleary/JSON-java/issues/264
stlearyhttps://github.com/stleary
JSON-javahttps://github.com/stleary/JSON-java
Codehttps://github.com/stleary/JSON-java
Issues19 (19)https://github.com/stleary/JSON-java/issues
Pull requestshttps://github.com/stleary/JSON-java/pulls
Actionshttps://github.com/stleary/JSON-java/actions
Projectshttps://github.com/stleary/JSON-java/projects
Wikihttps://github.com/stleary/JSON-java/wiki
Security and quality1 (1)https://github.com/stleary/JSON-java/security
Insightshttps://github.com/stleary/JSON-java/pulse
https://github.com/stleary/JSON-java
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/264
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/264
StackOverflow in JSONObjecthttps://github.com/stleary/JSON-java/issues/264#top
https://github.com/auricgoldfinger
auricgoldfingerhttps://github.com/auricgoldfinger
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/264#issue-170343408
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-238899291
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-238900149
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-238903212
JSONObject::populateMaphttps://github.com/stleary/JSON-java/blob/master/JSONObject.java#L1115
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239072478
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239073381
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239073656
https://github.com/auricgoldfinger
auricgoldfingerhttps://github.com/auricgoldfinger
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239085886
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239186809
@auricgoldfingerhttps://github.com/auricgoldfinger
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 15, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-239739386
@auricgoldfingerhttps://github.com/auricgoldfinger
https://github.com/auricgoldfinger
auricgoldfingerhttps://github.com/auricgoldfinger
on Aug 16, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-240048787
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 16, 2016https://github.com/stleary/JSON-java/issues/264#issuecomment-240240793
stlearyhttps://github.com/stleary
completedhttps://github.com/stleary/JSON-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 16, 2016https://github.com/stleary/JSON-java/issues/264#event-757693076
johnjaylwardhttps://github.com/johnjaylward
on Jul 8, 2017https://github.com/stleary/JSON-java/issues/264#event-1155338325
Updates for populateMap based on discussion in stleary#279 and stlear…https://github.com/johnjaylward/JSON-java/commit/643b25140f84231667683b8c8179eb1809b710cb
stleary#279https://github.com/stleary/JSON-java/issues/279
stlear…https://github.com/stleary/JSON-java/issues/264
643b251https://github.com/johnjaylward/JSON-java/commit/643b25140f84231667683b8c8179eb1809b710cb
stlearyhttps://github.com/stleary
on Jul 19, 2017https://github.com/stleary/JSON-java/issues/264#event-1171222411
Merge pull request #354 from johnjaylward/PopulateMapMoreStricthttps://github.com/stleary/JSON-java/commit/d9b8507e6ac4bf76f089ab96222273126ae45a4a
#354https://github.com/stleary/JSON-java/pull/354
d9b8507https://github.com/stleary/JSON-java/commit/d9b8507e6ac4bf76f089ab96222273126ae45a4a
Sign up for freehttps://github.com/signup?return_to=https://github.com/stleary/JSON-java/issues/264
Sign in to commenthttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/264
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.