Next Version?

  • Mike

    Mike - 2005-06-29


    Any ideas about the timeframe of the next version.

    There are a couple of fixes that all retroweaver users are eagerly waiting for.

    - verifer improvements
    - class literals bug
    - java.util.concurrent (which could be replaced by\)
    - ant task improvements

    I already submitted some patches for some of this issues, and I would also be willing to help integrate them into the codebase if you want.


    • Garret Wilson

      Garret Wilson - 2005-08-06

      I'm getting ready to roll up my sleeves and integrate java.util.concurrent support because I need this yesterday. Has anyone already made these changes? Should I post the results here?

    • Garret Wilson

      Garret Wilson - 2005-08-06

      Wow, that wasn't too hard. The following must be changed in

          // Change all references from java.lang.Enum to our own Enum_ class
          // which is signature compatible with Enum.
          if ( newName.indexOf( "java/lang/Enum" ) != -1 ) {
            // System.out.println( "Replacing Enum." );
            newName = newName.replace( "java/lang/Enum", "com/rc/retroweaver/runtime/Enum_" );

          // Change all references from java.util.concurrent.ConcurrentHashMap to (GW).
          if ( newName.indexOf( "java/util/concurrent/ConcurrentHashMap" ) != -1 ) {
            // System.out.println( "Replacing ConcurrentHashMap." );
            newName = newName.replace( "java/util/concurrent/ConcurrentHashMap", "edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHashMap" );

          // Change all references from java.util.concurrent.CopyOnWriteArrayList to (GW).
          if ( newName.indexOf( "java/util/concurrent/CopyOnWriteArrayList" ) != -1 ) {
            // System.out.println( "Replacing CopyOnWriteArrayList." );
            newName = newName.replace( "java/util/concurrent/CopyOnWriteArrayList", "edu/emory/mathcs/backport/java/util/concurrent/CopyOnWriteArrayList" );

          // Change all references from java.util.concurrent.CopyOnWriteArraySet to (GW).
          if ( newName.indexOf( "java/util/concurrent/CopyOnWriteArraySet" ) != -1 ) {
            // System.out.println( "Replacing CopyOnWriteArraySet." );
            newName = newName.replace( "java/util/concurrent/CopyOnWriteArraySet", "edu/emory/mathcs/backport/java/util/concurrent/CopyOnWriteArraySet" );

      I changed the following in build.xml so that the edu.emory.mathcs.backport.* classes will automatically get included in retroweaver-rt.jar (assuming the backport classes are in lib\):

           <unjar src="lib\backport-util-concurrent.jar" dest="${}"/>

           <jar destfile="${release.dir}/retroweaver-rt.jar">
             <fileset dir="${}">
               <include name="com/rc/retroweaver/runtime/*.class"/>
               <include name="edu/emory/mathcs/backport/**/*.class"/>

      There's a little problem: the backport classes are in a* hierarchy, and RetroWeaver does naive replacements that ignore substring position. This means that running RetroWeaver multiple times on the same class files will result in edu/emory/mathcs/backport/edu/emory/mathcs/backport/java...

      1. RetroWeaver's replacement algorithm should be updated to make sure the replaced strings are prefixes instead of substrings.

      2. RetroWeaver should be updated to include other JDK 5.0 concurrent collections.

      3. Now that more than two or three classes are being included, the hard-coded strings should be replaced with some collection of class names and their replacements---or better yet, a configuration file.

      I don't mind doing all this, but I'd like to have a tidy place to dump this so that I don't have to do this work all over again whenever the next official version is released. Is there a Subversion repository I can get permission to access?



Log in to post a comment.