-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix push down to replace super references where appropriate (#1694)
* Fix push down to replace super references where appropriate - modify PushDownRefactoringProcessor to replace any super method invocations and super field accesses to the members being pushed down if they are in a destination of the moved members - add new test to PushDownTests - fixes #1692
- Loading branch information
Showing
4 changed files
with
113 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
org.eclipse.jdt.ui.tests.refactoring/resources/PushDown/test41/in/A.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package p; | ||
|
||
class A { | ||
int f; | ||
|
||
void m() { | ||
} | ||
|
||
void mA() { | ||
class B extends A { | ||
public void mB() { | ||
super.m(); | ||
super.f = 0; | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
org.eclipse.jdt.ui.tests.refactoring/resources/PushDown/test41/out/A.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package p; | ||
|
||
class A { | ||
void mA() { | ||
class B extends A { | ||
int f; | ||
|
||
public void mB() { | ||
m(); | ||
this.f = 0; | ||
} | ||
|
||
void m() { | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters