René's URL Explorer Experiment


Title: Inconsistent handling of self-references (`ResolvedRecursiveType`) in caching and equality · Issue #128 · FasterXML/java-classmate · GitHub

Open Graph Title: Inconsistent handling of self-references (`ResolvedRecursiveType`) in caching and equality · Issue #128 · FasterXML/java-classmate

X Title: Inconsistent handling of self-references (`ResolvedRecursiveType`) in caching and equality · Issue #128 · FasterXML/java-classmate

Description: Follow-up from review of the #125 fix: handling of self-references (ResolvedRecursiveType) is inconsistent in two ways. 1. Cached types may contain self-references from another resolution context A type without type parameters is cached ...

Open Graph Description: Follow-up from review of the #125 fix: handling of self-references (ResolvedRecursiveType) is inconsistent in two ways. 1. Cached types may contain self-references from another resolution context A...

X Description: Follow-up from review of the #125 fix: handling of self-references (ResolvedRecursiveType) is inconsistent in two ways. 1. Cached types may contain self-references from another resolution context A...

Opengraph URL: https://github.com/FasterXML/java-classmate/issues/128

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent handling of self-references (`ResolvedRecursiveType`) in caching and equality","articleBody":"Follow-up from review of the #125 fix: handling of self-references (`ResolvedRecursiveType`) is inconsistent in two ways.\n\n### 1. Cached types may contain self-references from another resolution context\n\nA type without type parameters is cached under a single key, but when it is first resolved as a supertype of a type that refers back to it, its members contain self-references to *that* type (with its parameterization). A later direct resolution returns the cached instance, so results depend on resolution order:\n\n```java\nstatic abstract class Bar implements Comparable\u003cFoo> { }  // raw Foo\nstatic abstract class Foo\u003cT> extends Bar { }\n\nTypeResolver r = new TypeResolver();\n// with fresh resolver: Comparable\u003cFoo\u003cObject>> (ResolvedObjectType)\nr.resolve(Foo.class, String.class);\nr.resolve(Bar.class).typeParametersFor(Comparable.class).get(0);\n// -> ResolvedRecursiveType that refers to Foo\u003cString>\n```\n\nBefore #125 this was hidden for generic subtypes (supertypes were cached per enclosing parameterization), but the same already happens on 1.7 for non-generic subtypes. As of 1.8, types that have self-references in their *type parameters* are no longer cached, but self-references in supertypes are not checked.\n\n### 2. Self-reference vs resolved type equality is only relaxed for array elements\n\nAs of 1.8, `ResolvedArrayType.equals()` treats a self-referential element type as equal to the fully resolved type (by erased type and bindings), so that f.ex `Node[]` within `class Node extends Base\u003cNode[]>` equals `resolve(Node[].class)` (needed to detect method overrides). But the same is not done for type parameters: `Base\u003cNode>` reached via `Node`'s parent is still not equal to a directly resolved `Base\u003cNode>`, nor is `List\u003cNode>[]`. Also, two equal arrays may have element types that are not equal to each other.\n\n### Possible approach\n\nMake `ResolvedRecursiveType` equality (and hash code) consistent with the type it refers to, in general rather than only for array elements; this needs care to avoid infinite recursion (see #117). That would also allow simplifying the array special case.\n","author":{"url":"https://github.com/cowtowncoder","@type":"Person","name":"cowtowncoder"},"datePublished":"2026-10-08T03:18:43Z","url":"https://github.com/FasterXML/java-classmate/issues/128"}

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:e91a33c1-0230-9f16-829f-fe612953fae1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2E8:10FAD5:D11A0:123A10:6AFBC936
html-safe-nonce4d1c5adc50cdcbe47db392d88b7de7fc2bb5ab2d5d79e275f6d15c58d9a260d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkU4OjEwRkFENTpEMTFBMDoxMjNBMTA6NkFGQkM5MzYiLCJ2aXNpdG9yX2lkIjoiNTg0MjU0MDYyOTgzMzAwOTQ2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4840588f649648d160721674a4e4977b841bd9d0cc31c4f32773d22cfda0558b
hovercard-subject-tagissue:5755276338
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/FasterXML/java-classmate/128/issue_layout
twitter:imagehttps://opengraph.githubassets.com/494919a82bca17feff850449b74b9de93965b3bbf01d135923576ab918cac73d/FasterXML/java-classmate/issues/128
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/494919a82bca17feff850449b74b9de93965b3bbf01d135923576ab918cac73d/FasterXML/java-classmate/issues/128
og:image:altFollow-up from review of the #125 fix: handling of self-references (ResolvedRecursiveType) is inconsistent in two ways. 1. Cached types may contain self-references from another resolution context A...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecowtowncoder
hostnamegithub.com
expected-hostnamegithub.com
Noned440bda0d812801778b27bfe9f7c1ce9ff22420c73f6f95150c4fcbca311c50b
turbo-cache-controlno-preview
go-importgithub.com/FasterXML/java-classmate git https://github.com/FasterXML/java-classmate.git
octolytics-dimension-user_id382692
octolytics-dimension-user_loginFasterXML
octolytics-dimension-repository_id935336
octolytics-dimension-repository_nwoFasterXML/java-classmate
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id935336
octolytics-dimension-repository_network_root_nwoFasterXML/java-classmate
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
release2c43021aed8695990c86c0eaaedc600bfeffec36
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/FasterXML/java-classmate/issues/128#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFasterXML%2Fjava-classmate%2Fissues%2F128
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%2FFasterXML%2Fjava-classmate%2Fissues%2F128
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=FasterXML%2Fjava-classmate
Reloadhttps://github.com/FasterXML/java-classmate/issues/128
Reloadhttps://github.com/FasterXML/java-classmate/issues/128
Reloadhttps://github.com/FasterXML/java-classmate/issues/128
FasterXMLhttps://github.com/FasterXML
java-classmatehttps://github.com/FasterXML/java-classmate
Codehttps://github.com/FasterXML/java-classmate
Issues13 (13)https://github.com/FasterXML/java-classmate/issues
Pull requests3 (3)https://github.com/FasterXML/java-classmate/pulls
Actionshttps://github.com/FasterXML/java-classmate/actions
Projectshttps://github.com/FasterXML/java-classmate/projects
Wikihttps://github.com/FasterXML/java-classmate/wiki
Security and qualityhttps://github.com/FasterXML/java-classmate/security
Insightshttps://github.com/FasterXML/java-classmate/pulse
https://github.com/FasterXML/java-classmate
New issuehttps://github.com/login?return_to=https://github.com/FasterXML/java-classmate/issues/128
New issuehttps://github.com/login?return_to=https://github.com/FasterXML/java-classmate/issues/128
Inconsistent handling of self-references (ResolvedRecursiveType) in caching and equalityhttps://github.com/FasterXML/java-classmate/issues/128#top
https://github.com/cowtowncoder
cowtowncoderhttps://github.com/cowtowncoder
on Oct 8, 2026https://github.com/FasterXML/java-classmate/issues/128#issue-5755276338
#125https://github.com/FasterXML/java-classmate/issues/125
#125https://github.com/FasterXML/java-classmate/issues/125
#117https://github.com/FasterXML/java-classmate/issues/117
https://github.com/cowtowncoder
cowtowncoderhttps://github.com/cowtowncoder
on Oct 8, 2026https://github.com/FasterXML/java-classmate/issues/128#issuecomment-6051975879
#125https://github.com/FasterXML/java-classmate/issues/125
Regression in 1.7.2 (wrt #53) causes StackOverflowError for some recursive types #117https://github.com/FasterXML/java-classmate/issues/117
cowtowncoderhttps://github.com/cowtowncoder
completedhttps://github.com/FasterXML/java-classmate/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
b73b16fhttps://github.com/FasterXML/java-classmate/commit/b73b16ffdce7583f3540f60c5bed8107b3238a17
on Oct 10, 2026https://github.com/FasterXML/java-classmate/issues/128#event-32924666444
Sign up for freehttps://github.com/signup?return_to=https://github.com/FasterXML/java-classmate/issues/128
Sign in to commenthttps://github.com/login?return_to=https://github.com/FasterXML/java-classmate/issues/128
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.