Bug 373196

Summary: Override / Import places generated code at the wrong place when executed close to comments
Product: [Eclipse Project] JDT Reporter: Lukas Eder <lukas.eder>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: lukas.eder, manju656
Version: 3.7.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
A sample Eclipe project to reproduce the issue none

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 ***