GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Handle refinements in nested classes · Issue #315 · liquid-java/liquidjava

Handle refinements in nested classes #315

New issue
Copy link
New issue
Copy link
Closed
3 / 33 of 3 issues completed
#327
Closed
Handle refinements in nested classes#315
3 / 33 of 3 issues completed
#327
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@CatarinaGamboa
CatarinaGamboa
opened on Oct 2, 2026
Issue body actions

Refinements on fields of nested classes depend on declaration order and on field names. Real code often puts helper classes (runnables, DTOs) at the bottom of the file, so this comes up when verifying real-world examples (see #308, fixed by #314 for field writes).

The root cause is that fields are registered only in the second pass, in source order. They are stored under a name-only key (this#<name>), and the variable context is reset whenever any class is entered, nested classes included.

Sub-issues track the specific cases:

  • Reading a field of a class declared later in the file loses its refinement #316 Field reads of a class declared later lose its refinement
  • Nested classes wipe the outer class's field refinements #317 Nested classes wipe the outer class's field refinements
  • Fields with the same name in different classes collide #318 Fields with the same name in different classes collide

Activity

  1. CatarinaGamboa
    added
    bugSomething isn't workingSomething isn't working
    on Oct 2, 2026
  2. CatarinaGamboa
    added sub-issues on Oct 2, 2026
    • Reading a field of a class declared later in the file loses its refinement #316
    • Nested classes wipe the outer class's field refinements #317
    • Fields with the same name in different classes collide #318
  3. rcosta358
    added a commit that references this issue on Oct 3, 2026

    Cover combined nested field refinements (test #315)

    698cb08
  4. rcosta358
    linked a pull request that will close this issueFix collisions between same-named fields #327on Oct 3, 2026
  5. rcosta358
    closed this as completedin #327on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.