Bug 110963 - [ast rewrite] problem replacing parentized expression after return/**/
Summary: [ast rewrite] problem replacing parentized expression after return/**/
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 13:06 EDT by Markus Keller CLA
Modified: 2005-11-01 11:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-09-28 13:06:11 EDT
I20050923-1000

The second fix for bug 103970 reintroduced a problem that was fixed by the first
version:

- set compiler option for unnecessary casts to Warning
- class Try {
    Object make() {
        return/*(give back)*/  ((Object) new Object());
    }
}
- the quick fix yields:
        returnnew Object();
Comment 1 Martin Aeschlimann CLA 2005-09-29 04:31:13 EDT
fixed > 20050929
Comment 2 Benno Baumgartner CLA 2005-11-01 10:17:20 EST
Verified using I20051031-2000