Bug 74958 - Improper indentation when pasting into case statement
Summary: Improper indentation when pasting into case statement
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-09-24 11:22 EDT by Randy Hudson CLA
Modified: 2007-06-22 10:04 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 Randy Hudson CLA 2004-09-24 11:22:19 EDT
given:
switch (value) {
  case 1:
    return true;
  case 2:

  default:
}

Select the return statement in case 1, and paste into case 2.  The result is:
  case 2:
  return true;

the return statement should be indented.

In the above code, 2 spaces == TAB
Comment 1 Dani Megert CLA 2004-09-24 11:31:08 EDT
Fixed by Indent Line fix for switch statemnt?
Comment 2 Tom Hofmann CLA 2004-09-24 11:37:58 EDT
seems fixed in M2 - Randy, do you still see this?
Comment 3 Dani Megert CLA 2007-06-22 09:59:14 EDT
Get rid of deprecated state.
Comment 4 Dani Megert CLA 2007-06-22 10:04:31 EDT
.