This is the mail archive of the mauve-discuss@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can I commit a bug fix in CreateTags.java ?


Michael Koch a écrit :

On Sat, Sep 17, 2005 at 01:24:00PM +0200, Fabien DUMINY wrote:


Hi,
I found and fixed a bug in CreateTags. The ';' wasn't removed from the package declaration and it was written in the testlet className.


Can I commit the bug fix (when I will have the rights to do) ?
I ask you that question because I read that such modification (in the core of Mauve, not in the testlets) should be discussed here.



Please send a patch representing this change here.



Michael


Here is the patch (joined file).

Fabien.
Index: CreateTags.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/runner/CreateTags.java,v
retrieving revision 1.1
diff -u -r1.1 CreateTags.java
--- CreateTags.java	1 Jul 2005 18:33:43 -0000	1.1
+++ CreateTags.java	17 Sep 2005 12:14:22 -0000
@@ -130,7 +130,10 @@
                                 tags = line;
                         }
                         else if(buf.indexOf("package ") == 0)
-                            pckage = buf.substring(8, buf.length()-1);
+                        {
+                            int idx = buf.lastIndexOf(";");
+                            pckage = buf.substring(8, idx);
+                        }
                         buf = new StringBuffer();
                         maxLines--;
                     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]