You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/04 00:55:54 UTC
svn commit: r391166 -
/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java
Author: sebb
Date: Mon Apr 3 15:55:52 2006
New Revision: 391166
URL: http://svn.apache.org/viewcvs?rev=391166&view=rev
Log:
Move call to SaveService.getVERSION() out of static class init -
it is called during SaveService init, so causes a hang.
Modified:
jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java
Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java?rev=391166&r1=391165&r2=391166&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/reporters/ResultCollector.java Mon Apr 3 15:55:52 2006
@@ -69,8 +69,8 @@
private static final String TESTRESULTS_START = "<testResults>"; // $NON-NLS-1$
- private static final String TESTRESULTS_START_V1_1 = "<testResults version=\"" // $NON-NLS-1$
- + SaveService.getVERSION() + "\">"; // $NON-NLS-1$
+ private static final String TESTRESULTS_START_V1_1_PREVER = "<testResults version=\""; // $NON-NLS-1$
+ private static final String TESTRESULTS_START_V1_1_POSTVER="\">"; // $NON-NLS-1$
private static final String TESTRESULTS_END = "</testResults>"; // $NON-NLS-1$
@@ -219,7 +219,11 @@
if (pi.length() > 0) {
writer.println(pi);
}
- writer.println(TESTRESULTS_START_V1_1);
+ // Can't do it as a static initialisation, because SaveService
+ // is being constructed when this is called
+ writer.print(TESTRESULTS_START_V1_1_PREVER);
+ writer.print(SaveService.getVERSION());
+ writer.println(TESTRESULTS_START_V1_1_POSTVER);
} else if (saveConfig.saveFieldNames()) {
writer.println(OldSaveService.printableFieldNamesToString(saveConfig));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org