tsantalis / JDeodorant

JDeodorant
https://marketplace.eclipse.org/content/jdeodorant
MIT License
139 stars 59 forks source link

Wrong access of field instance of the class itself in Extract Class refactoring #75

Closed 123a6bcw closed 4 years ago

123a6bcw commented 4 years ago

Please consider this file https://github.com/JetBrains-Research/IntelliJDeodorant/blob/god-class-apply-refactoring-merge/src/test/resources/testdata/ide/refactoring/godclass/TestChainedMethodAccess/initial/Test.java

Line 29 contains chained.b += 1;

You can see the expected and actual results in the comment above.