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 2009/04/27 02:55:03 UTC

svn commit: r768843 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java

Author: sebb
Date: Mon Apr 27 00:55:03 2009
New Revision: 768843

URL: http://svn.apache.org/viewvc?rev=768843&view=rev
Log:
Prevent call to TransactionSampler.sample()

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java?rev=768843&r1=768842&r2=768843&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java Mon Apr 27 00:55:03 2009
@@ -60,12 +60,11 @@
     }
 
     /**
-     * One cannot sample the TransactionSample directly.
+     * One cannot sample the TransactionSampler directly.
      */
     public SampleResult sample(Entry e) {
-        // It is the JMeterThread which knows how to sample a
-        // real sampler
-        return null;
+        throw new RuntimeException("Cannot sample TransactionSampler directly");
+        // It is the JMeterThread which knows how to sample a real sampler
     }
 
     public Sampler getSubSampler() {



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org