Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307437 - Refactoring: Replace Old-Style Do Loops - CQ 4177 (approved)
Summary: Refactoring: Replace Old-Style Do Loops - CQ 4177 (approved)
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: 7.0   Edit
Assignee: Mariano Mendez CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 15:12 EDT by Mariano Mendez CLA
Modified: 2011-05-14 06:32 EDT (History)
1 user (show)

See Also:


Attachments
Replace Old Style Do Loop Refactoring (33.57 KB, patch)
2010-03-29 15:14 EDT, Mariano Mendez CLA
no flags Details | Diff
replace Old Style Do Loops Refactoring new patch (33.65 KB, text/plain)
2010-04-06 10:52 EDT, Mariano Mendez CLA
com-eclipse-dot-org: iplog+
Details
The new one with copyright modification (33.67 KB, patch)
2010-04-27 12:11 EDT, Mariano Mendez CLA
no flags Details | Diff
the patch according new photran 6 structure (32.57 KB, patch)
2010-05-27 11:35 EDT, Mariano Mendez CLA
no flags Details | Diff
New code compliant with eclipse Helios rc2 (message bundles) (35.78 KB, patch)
2010-06-04 19:43 EDT, Mariano Mendez CLA
no flags Details | Diff
legal issue fixed (35.77 KB, patch)
2010-06-17 21:11 EDT, Mariano Mendez CLA
no flags Details | Diff
Marker based test suite for Replace Old Style Do Loops refactoring (11.43 KB, patch)
2010-07-15 16:59 EDT, ehuq24 CLA
no flags Details | Diff
(NEW) Marker-based test suite for Replace Old Style Do Loop Refactoring (11.42 KB, patch)
2010-07-15 17:22 EDT, ehuq24 CLA
no flags Details | Diff
Revised patch with new test suite, merge conflicts resolved (31.58 KB, patch)
2010-07-19 19:10 EDT, Jeffrey Overbey CLA
g.watson: iplog+
Details | Diff
Bugs Fixed patch (33.70 KB, patch)
2010-08-12 19:16 EDT, Mariano Mendez CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mariano Mendez CLA 2010-03-29 15:12:20 EDT
Build Identifier: 20090920-1017

Replace Old Style Do Loops Refactoring: This refactoring replace old style do loop formats whith a more structured construction by adding a END DO statement .

Reproducible: Always
Comment 1 Mariano Mendez CLA 2010-03-29 15:14:21 EDT
Created attachment 163318 [details]
Replace Old Style Do Loop Refactoring

Patch
Comment 2 Jeffrey Overbey CLA 2010-04-06 01:54:31 EDT
Thanks a lot, Mariano.  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or
relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?

(To do this, you can just add a comment to this bug stating, "I confirm that..." and basically repeat these three points.  Thanks.)
Comment 3 Jeffrey Overbey CLA 2010-04-06 02:00:23 EDT
Also, I quickly skimmed your patch.  Everything looks good, except for two minor things.

1. On the files you wrote entirely yourself (e.g., ReplaceOldStyleDoLoopRefactoring), please change the copyright notice at the top of the file.  Instead of "Copyright (c) 2010 University of Illinois at Urbana-Champaign and others", it should either read "Copyright (c) 2010 Mariano Mendez and others" or "Copyright (c) 2010 Universidad Nacional de la Plata and others," depending on whether you "own" the code that you wrote or whether you were paid to do it by your university.

2. Please also add a brief summary comment to the JavaDoc for each new class, above the line "@author Mariano Mendez", stating briefly what it does.

Thanks a lot.

Jeff
Comment 4 Mariano Mendez CLA 2010-04-06 10:35:19 EDT
  I confim that I wrote 100% of the code without incorporating content from elsewhere or  relying on the intellectual property of others,

I confim that I have the right to contribute the code to Eclipse, and
 
I confim that I have included the EPL license header in all source files?
Comment 5 Mariano Mendez CLA 2010-04-06 10:52:32 EDT
Created attachment 163903 [details]
replace Old Style Do Loops Refactoring new patch 

here is the pacth with the changes
Comment 6 Mariano Mendez CLA 2010-04-27 12:11:50 EDT
Created attachment 166215 [details]
The new one with copyright modification 

this one has the right copyright.
Mariano
Comment 7 Jeffrey Overbey CLA 2010-05-06 19:18:06 EDT
Targeting this for 7.0 or 6.1.  We'll need to submit a CQ for legal approval... maybe do this and some other refactorings all at once...
Comment 8 Mariano Mendez CLA 2010-05-27 11:35:53 EDT
Created attachment 170207 [details]
the patch according new photran 6 structure

the new patch with changes for hellios done .
Comment 9 Jeffrey Overbey CLA 2010-05-27 18:13:21 EDT
CQ 4177 submitted
Comment 10 Mariano Mendez CLA 2010-06-04 19:43:18 EDT
Created attachment 171189 [details]
New code compliant with eclipse Helios rc2 (message bundles)
Comment 11 Jeffrey Overbey CLA 2010-06-16 17:14:30 EDT
Hi Mariano,

I've been in contact with the IP team.  They will be contacting Alejandra regarding copyright issues.  Also, the copyright headers you have now look like this:

+/*******************************************************************************
+ * Copyright (c) 2010 University of Mariano Mendez and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    UIUC - Initial API and implementation
+ *******************************************************************************/

They would like you to make the following changes:

1. The first line should read "Copyright (c) 2010 Mariano Mendez and others."  (There is no University of Mariano Mendez!)

2. The last line should read "Mariano Mendez - Initial API and implementation"

Please revise the patch accordingly, and I'll submit the revised version to the IP team.  Thanks.
Comment 12 Mariano Mendez CLA 2010-06-17 21:11:36 EDT
Created attachment 172180 [details]
legal issue fixed
Comment 13 Jeffrey Overbey CLA 2010-06-18 17:47:21 EDT
Thanks.  I attached the revised patch to the CQ.  Sharon will process the CQ as soon as she receives confirmation from your University that the copyright belongs to you.
Comment 14 Jeffrey Overbey CLA 2010-06-24 10:10:10 EDT
Note to self: There will be some duplication between this and Matt's control flow code, since both need to collect and map the statement labels in a procedure.  I should pull that functionality up into ScopingNode or some other superclass.
Comment 15 Jeffrey Overbey CLA 2010-07-06 17:06:34 EDT
The CQ was approved.  I will try to get this into CVS soon.
Comment 16 Jeffrey Overbey CLA 2010-07-15 11:10:41 EDT
Esfar, could you please convert the test suite for this refactoring to be
marker-based and then attach a revised patch?  Thanks.
Comment 17 ehuq24 CLA 2010-07-15 16:59:47 EDT
Created attachment 174449 [details]
Marker based test suite for Replace Old Style Do Loops refactoring

Note: Test 5 does not pass due to a minor issue involving the reindenter (and its' behavior concerning the keyword "continue"). This is NOT an issue with the refactoring itself.
Comment 18 ehuq24 CLA 2010-07-15 17:22:20 EDT
Created attachment 174452 [details]
(NEW) Marker-based test suite for Replace Old Style Do Loop Refactoring

Patch that corrects an issue with the name of the suite file from the (now) obsolete patch. All other notes/comments from the last patch still apply.
Comment 19 Jeffrey Overbey CLA 2010-07-19 17:09:17 EDT
Thanks.  Esfar, for your test suite code, can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others (except for code from Mariano's original tests),

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?
Comment 20 ehuq24 CLA 2010-07-19 17:14:24 EDT
(In reply to comment #19)
> Thanks.  Esfar, for your test suite code, can you please confirm that
> 
> 1. you wrote 100% of the code without incorporating content from elsewhere or
> relying on the intellectual property of others (except for code from Mariano's
> original tests),
> 
> 2. you have the right to contribute the code to Eclipse, and
> 
> 3. you have included the EPL license header in all source files?

Yes,

1. I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others (except for code from Mariano's original tests),

2. I have the right to contribute code to Eclipse, and

3. I have included the EPL license header in all source files
Comment 21 Jeffrey Overbey CLA 2010-07-19 19:10:20 EDT
Created attachment 174687 [details]
Revised patch with new test suite, merge conflicts resolved
Comment 22 Jeffrey Overbey CLA 2010-07-19 19:16:19 EDT
Hi Mariano,

I ran into a small problem.  The changes to the LoopReplacer are reordering statements in a couple of our test files.  I will send those to you in e-mail.

I attached a revised patch to this bug.  It is the same as your patch, except we converted the test suite to be marker-based, and some CVS merge conflicts have been resolved.

Could you please delete your local copy of this refactoring, then update from CVS, apply the *revised* patch I just attached to this bug, and take a look at this?  Thanks!

Jeff
Comment 23 Mariano Mendez CLA 2010-07-19 19:36:46 EDT
I will

Mariano
Comment 24 Mariano Mendez CLA 2010-08-12 19:16:06 EDT
Created attachment 176513 [details]
Bugs Fixed patch
Comment 25 Jeffrey Overbey CLA 2010-09-21 08:25:32 EDT
Patch committed to CVS.  Thanks, Mariano!  Could you please add a screenshot and brief instructions to the Photran 7 Advanced Features manual at http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced

Thanks!
Comment 26 Jeffrey Overbey CLA 2011-03-15 22:11:05 EDT
Patch is in CVS; closing bug