René's URL Explorer Experiment


Title: Field use triggers RuntimeException · Issue #238 · liquid-java/liquidjava · GitHub

Open Graph Title: Field use triggers RuntimeException · Issue #238 · liquid-java/liquidjava

X Title: Field use triggers RuntimeException · Issue #238 · liquid-java/liquidjava

Description: Description Runtime exception in the next case. Minimal reproducer Client: public class ByteBufTest { public static final int TEST_BUFFER_SIZE = 128; private ByteBuffer mDirectBuffer; public ByteBufTest() { mDirectBuffer = ByteBuffer.all...

Open Graph Description: Description Runtime exception in the next case. Minimal reproducer Client: public class ByteBufTest { public static final int TEST_BUFFER_SIZE = 128; private ByteBuffer mDirectBuffer; public ByteBu...

X Description: Description Runtime exception in the next case. Minimal reproducer Client: public class ByteBufTest { public static final int TEST_BUFFER_SIZE = 128; private ByteBuffer mDirectBuffer; public ByteBu...

Opengraph URL: https://github.com/liquid-java/liquidjava/issues/238

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Field use triggers RuntimeException","articleBody":"**Description**\nRuntime exception in the next case.\n\n**Minimal reproducer**\nClient:\n```java\npublic class ByteBufTest {\n\n    public static final int TEST_BUFFER_SIZE = 128;\n\n    private ByteBuffer mDirectBuffer;\n\n    public ByteBufTest() {\n        mDirectBuffer = ByteBuffer.allocateDirect(TEST_BUFFER_SIZE);\n        byte[] buf = mDirectBuffer.array();\n    }\n}\n```\nRefinements:\n```java\n@Ghost(\"boolean arrayBacked\")\n@ExternalRefinementsFor(\"java.nio.ByteBuffer\")\npublic interface ByteBufferRefinements {\n\n    // ---- Backing array access ----\n\n    @StateRefinement(to=\"_ ? arrayBacked() : !arrayBacked()\")\n    boolean hasArray();\n\n    @StateRefinement(from=\"arrayBacked()\")\n    byte[] array();\n\n    @StateRefinement(from=\"arrayBacked()\")\n    int arrayOffset();\n}\n```\n\n**Expected behavior**\nNot RuntimeException. Also within the method we shuold be able to know the state of the object even if it is a field if that state is introduced in this scope.\n\n**Actual behavior**\nStackTrace:\n```\njava.lang.RuntimeException: \nError while checking CtConstructorImpl\n  on ByteBufTest() { \n  at /Users/cgamboa/git/task-examples/liquidjava-tasks/src/main/java/com/example/so_clients/bytebuffer48582520/ByteBufTest.java:14\n  with \nError while checking CtBlockImpl\n  on { \n  at /Users/cgamboa/git/task-examples/liquidjava-tasks/src/main/java/com/example/so_clients/bytebuffer48582520/ByteBufTest.java:14\n  with \nError while checking CtLocalVariableImpl\n  on buf = mDirectBuffer.array(); \n  at /Users/cgamboa/git/task-examples/liquidjava-tasks/src/main/java/com/example/so_clients/bytebuffer48582520/ByteBufTest.java:20\n  with \nError while checking CtInvocationImpl\n  on mDirectBuffer.array(); \n  at /Users/cgamboa/git/task-examples/liquidjava-tasks/src/main/java/com/example/so_clients/bytebuffer48582520/ByteBufTest.java:20\n  with Cannot invoke \"liquidjava.processor.context.RefinedVariable.getType()\" because \"var\" is null\n    at liquidjava.processor.refinement_checker.TypeChecker.scan (TypeChecker.java:78)\n    at spoon.reflect.visitor.CtScanner.scan (CtScanner.java:184)\n\n```\n\n**Environment**\n- LiquidJava version / commit: verifier 0.0.26, #237 \n- Java version (`java -version`):\n- OS:\n","author":{"url":"https://github.com/CatarinaGamboa","@type":"Person","name":"CatarinaGamboa"},"datePublished":"2026-06-02T10:13:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/238/liquidjava/issues/238"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7091d95-d81e-5c6e-edff-5713c2028a99
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9AF0:2A8290:6EFC3D:91C49B:6A62A2C2
html-safe-noncebdd6b9959e1ed662b6c7f4464feeb134763650bf42d5ea8e771ad6eecb4c118d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUYwOjJBODI5MDo2RUZDM0Q6OTFDNDlCOjZBNjJBMkMyIiwidmlzaXRvcl9pZCI6IjU0NDQxMzk4OTI5NDI3NDIyMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf5845b06ff0068ff5c18edb605de644e4e3c38d6f57467c928000e38d117be4c
hovercard-subject-tagissue:4570510085
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/liquid-java/liquidjava/238/issue_layout
twitter:imagehttps://opengraph.githubassets.com/961d65d0619640447e377d5de4009ae768edf6e173fd5e380b642419597fbeb4/liquid-java/liquidjava/issues/238
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/961d65d0619640447e377d5de4009ae768edf6e173fd5e380b642419597fbeb4/liquid-java/liquidjava/issues/238
og:image:altDescription Runtime exception in the next case. Minimal reproducer Client: public class ByteBufTest { public static final int TEST_BUFFER_SIZE = 128; private ByteBuffer mDirectBuffer; public ByteBu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCatarinaGamboa
hostnamegithub.com
expected-hostnamegithub.com
Nonea6443033349a18134b517627f043d4a59a5110337b879810c7229c2c7e28eda0
turbo-cache-controlno-preview
go-importgithub.com/liquid-java/liquidjava git https://github.com/liquid-java/liquidjava.git
octolytics-dimension-user_id242831829
octolytics-dimension-user_loginliquid-java
octolytics-dimension-repository_id258218369
octolytics-dimension-repository_nwoliquid-java/liquidjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id258218369
octolytics-dimension-repository_network_root_nwoliquid-java/liquidjava
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
released6c6cacbe32d3ddfd1796fbd1a39b8fb47b87daf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/liquid-java/liquidjava/issues/238#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fliquid-java%2Fliquidjava%2Fissues%2F238
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fliquid-java%2Fliquidjava%2Fissues%2F238
Sign up https://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=liquid-java%2Fliquidjava
Reloadhttps://Github.com/liquid-java/liquidjava/issues/238
Reloadhttps://Github.com/liquid-java/liquidjava/issues/238
Reloadhttps://Github.com/liquid-java/liquidjava/issues/238
Please reload this pagehttps://Github.com/liquid-java/liquidjava/issues/238
liquid-java https://Github.com/liquid-java
liquidjavahttps://Github.com/liquid-java/liquidjava
Notifications https://Github.com/login?return_to=%2Fliquid-java%2Fliquidjava
Fork 36 https://Github.com/login?return_to=%2Fliquid-java%2Fliquidjava
Star 65 https://Github.com/login?return_to=%2Fliquid-java%2Fliquidjava
Code https://Github.com/liquid-java/liquidjava
Issues 20 https://Github.com/liquid-java/liquidjava/issues
Pull requests 8 https://Github.com/liquid-java/liquidjava/pulls
Actions https://Github.com/liquid-java/liquidjava/actions
Projects https://Github.com/liquid-java/liquidjava/projects
Security and quality 0 https://Github.com/liquid-java/liquidjava/security
Insights https://Github.com/liquid-java/liquidjava/pulse
Code https://Github.com/liquid-java/liquidjava
Issues https://Github.com/liquid-java/liquidjava/issues
Pull requests https://Github.com/liquid-java/liquidjava/pulls
Actions https://Github.com/liquid-java/liquidjava/actions
Projects https://Github.com/liquid-java/liquidjava/projects
Security and quality https://Github.com/liquid-java/liquidjava/security
Insights https://Github.com/liquid-java/liquidjava/pulse
Field use triggers RuntimeExceptionhttps://Github.com/liquid-java/liquidjava/issues/238#top
bugSomething isn't workinghttps://github.com/liquid-java/liquidjava/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/CatarinaGamboa
CatarinaGamboahttps://github.com/CatarinaGamboa
on Jun 2, 2026https://github.com/liquid-java/liquidjava/issues/238#issue-4570510085
Add Element Context to Exceptions #237https://github.com/liquid-java/liquidjava/pull/237
bugSomething isn't workinghttps://github.com/liquid-java/liquidjava/issues?q=state%3Aopen%20label%3A%22bug%22
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.