| Summary: | [plan] [refactoring] Pull Out Refactoring: handling of abstract methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Kris De Volder <kdevolder> | ||||||||
| Component: | UI | Assignee: | AJDT-inbox <AJDT-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | andrew.eisenberg | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 2.1.1 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=277055 | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 277055 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Kris De Volder
Created attachment 175106 [details]
Patch: implementing this feature + tests
I'm attaching a patch that imlements pulling out support for abstract and interface methods.
Does the following:
a) when we do not select the "generate abstract method stubs" option
- produce warnings for any abstract or interface methods
- if you refactor anyway
- ads abstract+public keyword to interface methods that don't already
have it
- create an "abstract" itd that will cause compile errors that user can then
look at and address.
b) when we *do* select generate abstract method stubs
- removes abstract keyword
- adds a method stub that throws an Error when called
Created attachment 175107 [details]
Update: remove some dead/unused code from previous patch
Patch is applied and committed. It looks like this bug should be closed. No? Yes. Thanks for committing the patch Reopening. It looks like my patch contained a broken test case. Something must have gone wrong when I created the patch, it seems to contain an older, broken version of the testcase from my local history. I'm attaching a patch that fixes the test case. Created attachment 175162 [details]
Fixes a broken test case
Patch is applied. committed. |