Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335070 - Eclipse editor inserted extra lines in JAVA class.
Summary: Eclipse editor inserted extra lines in JAVA class.
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 18:02 EST by Dave Dick CLA
Modified: 2011-01-24 04:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Dick CLA 2011-01-21 18:02:11 EST
Build Identifier: M20100909-0800

This is intermittent and hard to describe much less search for.  Sorry if I duplicate a known issue.  On occasion, I get garbage inserted into my JAVA code.   I have no way of being able to predict when it will occur, much less reproduce the problem.

Description below attempts to describe latest event in the sequence it happened. I have seen it also insert single characters here and there.  The JAVA class it failed on is ~30k and 721 lines.

Reproducible: Sometimes

Steps to Reproduce:
1.I changed a method name, added a parameter and corrected the method.  

2. I fixed the one place the method was called for the additional parameter.

3. I went to run the program and in two places, the original method  had been inserted into the JAVA code and consequently I had errors.  One insertion was in the middle of an if statement, the other in the midst of straight line code.  The inserted code (probably) was from an earlier copy-paste operation (my memory is uncertain) since the method I am tweaking is a copy of another method made 10-15 minutes previously and they both look a lot alike (I didn't think to verify this before I corrected the problem, tested the change and then bitched here).
Comment 1 Dani Megert CLA 2011-01-24 04:10:02 EST
Dave, I'm sorry, but I can't recall having seen a similar bug before. Without further information there's nothing I can do. Please also see
http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm.