Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335070

Summary: Eclipse editor inserted extra lines in JAVA class.
Product: [Eclipse Project] JDT Reporter: Dave Dick <daved99>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.