Bug 373196 - Override / Import places generated code at the wrong place when executed close to comments
Summary: Override / Import places generated code at the wrong place when executed clos...
Status: CLOSED DUPLICATE of bug 231265
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-04 03:41 EST by Lukas Eder CLA
Modified: 2013-06-26 02:51 EDT (History)
2 users (show)

See Also:


Attachments
A sample Eclipe project to reproduce the issue (2.84 KB, application/zip)
2012-03-04 03:42 EST, Lukas Eder CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Eder CLA 2012-03-04 03:41:52 EST
Build Identifier: Build Identifier: Version: Indigo Release Build id: 20110615-0604

When executed close to comments, the Override / Import feature places generated code at the wrong place. It then seems to skip a whole subsequent method before inserting any code. A similar thing happens when trying to generate an implementation stub at the end of a class (after a pre-existing comment). The code is not added after the comment, but before

Reproducible: Always

Steps to Reproduce:
Follow the instructions in the attached Eclipse project. The workaround is to generate the method and move it manually
Comment 1 Lukas Eder CLA 2012-03-04 03:42:58 EST
Created attachment 212037 [details]
A sample Eclipe project to reproduce the issue
Comment 2 Martin Mathew CLA 2013-06-26 02:51:58 EDT

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