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 bu...@apache.org on 2002/11/22 16:33:44 UTC

DO NOT REPLY [Bug 14771] New: - split only in JDK1.4, not earlier

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14771>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14771

split only in JDK1.4, not earlier

           Summary: split only in JDK1.4, not earlier
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: Joerg-Cyril.Hoehle@t-systems.com


Being hit by bugs #13895 and #13995, I tried to apply the suggested patch and 
recompile. javac complained in
src/jorphan/org/apache/jorphan/test/AllTests.java:223
src/jorphan/org/apache/jorphan/collections/Data.java
about an unknown method split of the String class
String:split is only in JDK1.4 - yet you claim compatibility downto 1.2 or so.

Peeking around the sources, I found a workaround as follows.
In both .java files, add:
import org.apache.jmeter.util.JMeterUtils;
Additionaly in Help.java:
 Iterator classes = 
ClassFinder.findClassesThatExtend(JMeterUtils.split(searchPaths,","),
and in Data.java:
 setHeaders(JMeterUtils.split(contents[0],delimiter));
 setLine(JMeterUtils.split(contents[x++],delimiter));
E.g. use split() from the JMeterUtils package

After doing so, I managed to compile using JDK1.3.1.
After channging Help.java to say file:///..., I managed to start JMeter1.8 on 
MS-W2k.

Regards,
 J�rg H�hle.
BTW, you ought to add version 1.8 to Bugzilla's selection options.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>