Skip to content

Fix inline method to handle local classes referencing receivers#3088

Merged
jjohnstn merged 2 commits into
eclipse-jdt:masterfrom
jjohnstn:inlinelocalclass
Jul 18, 2026
Merged

Fix inline method to handle local classes referencing receivers#3088
jjohnstn merged 2 commits into
eclipse-jdt:masterfrom
jjohnstn:inlinelocalclass

Conversation

@jjohnstn

Copy link
Copy Markdown
Contributor

What it does

See issue.

How to test

See issue or new test.

Author checklist

- modify SourceAnalyzer.UpdateCollector to recognize when method
  invocations, constructor instantiations, and field references
  are within a local class but are referring to methods, constructors,
  and fields in the receiver class instead of the local one
- add new test to InlineMethodTests
- fixes eclipse-jdt#3069
@jjohnstn jjohnstn self-assigned this Jul 18, 2026
@jjohnstn jjohnstn added the bug Something isn't working label Jul 18, 2026
@jjohnstn jjohnstn added this to the 4.41 M2 milestone Jul 18, 2026
@jjohnstn
jjohnstn merged commit f83ca82 into eclipse-jdt:master Jul 18, 2026
13 checks passed
@jjohnstn
jjohnstn deleted the inlinelocalclass branch July 18, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline Method leaves unqualified instance method call inside local class when inlining into static context

1 participant