Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345844 - [assist] quickfix for adding "throws LiftingFailedException"
Summary: [assist] quickfix for adding "throws LiftingFailedException"
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.0 RC1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 09:58 EDT by Stephan Herrmann CLA
Modified: 2011-05-17 16:44 EDT (History)
0 users

See Also:


Attachments
proposed implementation (6.12 KB, patch)
2011-05-15 10:04 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2011-05-15 09:58:10 EDT
An org.objectteams.LiftingFailedException can be caused by non-statement
code, and also the error message is non-standard (contains link to OTJLD).
Therefor the standard quickfix for adding throws clause is not applicable
and we should add a quickfix of our own.
Comment 1 Stephan Herrmann CLA 2011-05-15 10:04:33 EDT
Created attachment 195665 [details]
proposed implementation

After directly invoking the JDT quickfix did not work, here's our own
implementation based on copy-n-paste from JDT but significantly simplified.
Comment 2 Stephan Herrmann CLA 2011-05-15 10:08:53 EDT
Released as r1588,9
Comment 3 Stephan Herrmann CLA 2011-05-17 16:44:57 EDT
Verified for 2.0 RC1 using build 201105161939.