[concurrency-interest] Backport in Retroweaver

David Walend david at walend.net
Tue May 17 09:34:20 EDT 2005


I took some time last night to add support for the concurrency  
backport in retroweaver last night. It was pretty straightforward.  
(diff to RetroWeaver.java added to the end of this email.)

Any advice on testing? Is there a body of tests for JSR-166 that I  
can just grab, retroweave and run?

Thanks,

Dave

----

diff -r src/com/rc/retroweaver/RetroWeaver.java src.orig/com/rc/ 
retroweaver/Retr
oWeaver.java
179,185d178
<     // Change references from  "java/util/concurrent" to "edu/emory/ 
mathcs/bac
kport/java/util/concurrent"
<     //only replace java/util/concurrent if it is not already part  
of the backp
ort's string.
<     //
<     if ( (newName.indexOf( "java/util/concurrent" ) != -1 ) &&  
( newName.index
Of("edu/emory/mathcs/backport/java/util/concurrent") == -1)) {
<       newName = newName.replace( "java/util/concurrent", "edu/emory/ 
mathcs/bac
kport/java/util/concurrent" );
<     }
<
253,259d245
<
<     //only replace java/util/concurrent if it is not already in the  
backport's
string.
<     if ( (newClassName.indexOf( "java/util/concurrent" ) != -1 )
<         && ( newClassName.indexOf("edu/emory/mathcs/backport/java/ 
util/concurr
ent") == -1)) {
<         newClassName = newClassName.replace( "java/util/ 
concurrent", "edu/emor
y/mathcs/backport/java/util/concurrent" );
<     }
<
Only in src/com/rc/retroweaver: RetroWeaver.java~



David Walend
david at walend.net
http://walend.net



More information about the Concurrency-interest mailing list