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

Bug 323215

Summary: Refactoring and references search problem
Product: [Modeling] Acceleo Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch v1.0 mariot.chauvin: iplog+

Description Stephane Begaudeau CLA 2010-08-20 03:10:21 EDT
Build Identifier: 

If you have two module like this :

[module A...]
[query public myQuery(s: String):String/]

[module B...]
[query public myQuery(s: String):String/]

During the refactoring or during the reference search, the two queries are considered as equals. And if you look for all references to the first one, you will end with references for both and if you rename the first one with the refactoring process both will be renamed. The same problem affects templates.

Reproducible: Always
Comment 1 Stephane Begaudeau CLA 2010-08-20 03:28:00 EDT
Created attachment 177067 [details]
Patch v1.0

Improve the detection of similar templates and queries.
Comment 2 Stephane Begaudeau CLA 2010-09-10 10:48:06 EDT
Contributed and available in Acceleo 3.0.1 RC4 and Acceleo 3.1.0 M2