Bug 243850 - [quick fix] Remove variable, keep side-effect assignments removes side-effect
Summary: [quick fix] Remove variable, keep side-effect assignments removes side-effect
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 05:22 EDT by Dani Megert CLA
Modified: 2023-04-28 13:26 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 Dani Megert CLA 2008-08-12 05:22:30 EDT
3.5 M1

1. add: int result = 8 / 0;
2. invoke Remove 'result', keep side-effect assignments removes side-effect
   quick fix
==> whole line is removed which is wrong.

We should not offer that quick fix at this location.
Comment 1 David Carver CLA 2008-08-13 23:07:21 EDT
*** Bug 244109 has been marked as a duplicate of this bug. ***
Comment 2 Eclipse Genie CLA 2019-05-07 11:58:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Dani Megert CLA 2019-05-08 09:22:31 EDT
Still an issue with 4.12 M1.
Comment 4 Eclipse Genie CLA 2021-04-28 12:12:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Eclipse Genie CLA 2023-04-28 13:26:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.