Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342932 - replace does not replace all matches found in same file
Summary: replace does not replace all matches found in same file
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 04:49 EDT by Kentaroh Noji CLA
Modified: 2011-05-17 04:21 EDT (History)
5 users (show)

See Also:


Attachments
Screencapture (52.74 KB, image/png)
2011-04-15 04:55 EDT, Kentaroh Noji CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaroh Noji CLA 2011-04-15 04:49:24 EDT
Build Identifier: I20110407-2200

This bug was found and reported during DBCS enablement test, but this may be not DBCS problem.
Find/replace function can find all characters in the target resources, but fails to replace all characters. The replace function replaces first found character only. The replacement does not work recursively. 

This problem happens in Eclipse v3.7/v4.1, but does not happen in v3.6. 

JDK: java full version "JRE 1.6.0 IBM Windows AMD 64 build pwa6460sr9fp1-20110208_03(SR9 FP1)" 
OS: Windows 7 SP1


Reproducible: Always

Steps to Reproduce:
1.Create a general project
2.Add untitled text file in the project
3.Enter same characters in multiple lines in the text. 
4.Open search dialog, enter a character in the Containing text input field. 
5.Click "Replace" button
6.Enter a character in "With" input field. 
7.Click "Review" button. 
8 Replace Text Matches window shows that replacement works for the first matched line.
Comment 1 Kentaroh Noji CLA 2011-04-15 04:55:39 EDT
Created attachment 193333 [details]
Screencapture
Comment 2 Dani Megert CLA 2011-04-15 06:25:24 EDT
Caused by incomplete fix for bug 320533.

Fixed in HEAD (ReplaceRefactoring.java, rev. 1.9).
Available in builds >= N20110415-2000.
Comment 3 Kentaroh Noji CLA 2011-05-17 04:21:13 EDT
Verified the problem was fixed with v4.1 I20110501-0200 (M7), Win7 64Bit.