This is the mail archive of the mauve-patches@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]

Exception line number fix


Roman pointed out that the line number we were returning as the FAIL
line number didn't always make sense.  This patch fixes the problem.

2006-07-26  Anthony Balkissoon  <abalkiss@redhat.com>

	* RunnerProcess.java:
	(exceptionDetails): Line number doesn't need to come from the test() 
	method, removed that "if".

--Tony
Index: RunnerProcess.java
===================================================================
RCS file: /cvs/mauve/mauve/RunnerProcess.java,v
retrieving revision 1.12
diff -u -r1.12 RunnerProcess.java
--- RunnerProcess.java	25 Jul 2006 23:11:16 -0000	1.12
+++ RunnerProcess.java	26 Jul 2006 21:37:22 -0000
@@ -821,8 +821,7 @@
     // exception.
     for (int i = 0; i < st.length; i++)
       {
-        if (st[i].getClassName().equals(name)
-            && st[i].getMethodName().equals("test"))
+        if (st[i].getClassName().equals(name))
           {
             lineOrigin = st[i].getLineNumber();
             break;

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