You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline Method leaves unqualified instance method call inside local class when inlining into static context #4464
Inline Method produces uncompilable code when inlining an instance method that contains a local class into the static method main.
Before refactoring, the local class H is declared inside the instance method f(). The call helper() inside H.g() is valid because it is implicitly bound to the enclosing I01 instance.
After applying Inline Method to the invocation obj.f(), the local class H is moved into the static method main. However, the call inside H.g() remains:
returnhelper();
At this point, there is no implicit I01.this available in the static context. The call should be qualified with the original receiver, for example:
Activity
shin19991207 commentedon Oct 21, 2026
Closing as a duplicate of eclipse-jdt/eclipse.jdt.ui#3069. This has been fixed upstream.