| Summary: | [quickfix] implement abstract methods from tsuper | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Project Teams <objectteams.otdt-inbox> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 2.0 | ||||||
| Target Milestone: | 2.1 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Shouldn't be too hard to fix. (In reply to comment #0) > If a non-abstract role overrides an abstract role from the super team, > missing implementations for abstract methods (incl. abstract static) > are not reported well: > - error has no valid location (shown at position 0) > - error differs between building and reconciling This was resolved in duplicate bug 355311. > - error has no quickfix. This will be fixed here (changing the bug title accordingly). Created attachment 204551 [details] tests & fix Fix comes in two steps: Must report AbstractMethodMustBeImplemented also for copy-inherited abstract methods. -> This will trigger the desired quickfixes Must catch CCE in ModifierCorrectionSubProcessor.addAbstractMethodProposals: it is expected that the error location is a method declaration, but copy-inherited method has no local AST, so we find the type decl instead. Tests: + new OTReconcilerTests.testBug348574a() Check that problem reported in comment 0 is really resolved + Adjust expected result in ImplicitInheritance + JavaQuickFixTests for the actual quickfixes Released for 2.1 M3 (r2034-38) Verified using build 2.2.1.201209182002 |