eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
37 stars 90 forks source link

Bug: Inline method refactoring causes changes in code behavior #1515

Closed DongChunHao closed 3 months ago

DongChunHao commented 3 months ago

Select f() method (Line 63) in class A and perform inline method refactoring. Before the refactoring, m() in class A is called by f() method; when the inline method refactoring is performed, m() in class B is displayed in t(), resulting in changes in code behavior (output a before refactoring, output b after refactoring) , the code before the refactoring is as follows: image

The code results after refactoring are as follows: image