Bug 22099 - AutoCorrect does not add throws clause properly [quick fix]
Summary: AutoCorrect does not add throws clause properly [quick fix]
Status: RESOLVED DUPLICATE of bug 22196
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-01 09:28 EDT by Antonio D'souza CLA
Modified: 2002-08-06 05:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio D'souza CLA 2002-08-01 09:28:03 EDT
What happens:

You have a method containing code that could throw an error but the error is not
being accounted for so there is a red line under the guilty code.
You invoke the autocorrecter by hitting ctrl+1 and selecting "Add exception to
throws clause".
The method now gets the throws clause inserted between the method name & the arg
list, instead of after the arg list.
Comment 1 Olivier Thomann CLA 2002-08-01 12:02:41 EDT
I think this should be fixed with the changes made by Martin after the fix for
bug 21768. Did you try with a 0730 build?
It should be fixed. Please annotate this PR after checking with 0730.
Comment 2 Philipe Mulet CLA 2002-08-02 10:14:50 EDT
Anyway, this belongs to jdt/ui
Comment 3 Dirk Baeumer CLA 2002-08-05 08:11:38 EDT
Martin, is this covered by the fixes attached to bug 21768
Comment 4 Dirk Baeumer CLA 2002-08-06 05:53:13 EDT

*** This bug has been marked as a duplicate of 22196 ***