As of the 2001.09.15 nightly build ================================== According to the documentation (http://jakarta.apache.org/jmeter/installing.html), JMeter runs in a Java 1.2 environment. JMeter currently depends on JDK 1.3 for the following reasons: 1. File: org.apache.gui.MainFrame.java Method: addThemAll() Introduced: File Version 1.7 This method calls JSplitPane.setResizeWeight(double), which is a new method in JDK 1.3. 2. File: org.apache.protocol.http.parser.HtmlParser.java Method: createUrlFromAnchor(String, URL) Introduced: File Version 1.8 This method calls URL.getPath(), which is a new method in JDK 1.3. 3. File: org.apache.protocol.http.config.UrlConfig.java Method: parseArguments(String) Introduced: File Version 1.19 This method calls URLDecoder.decode(String). In JDK 1.2, the decode() method has a throws clause: "throws Exception". In JDK 1.3, the method does not have a throws clause. So, in order to be JDK 1.2 compliant, we need to add a try/catch around the method call. FYI: Looking at the source code, I see two places where runtime exceptions can be thrown. First, an IllegalArgumentException is thrown if the URL-encoded value is an invalid hex number. Second, the method has a call to String.getBytes (String), which throws an UnsupportedEncodingException if the named encoding (in this case, 8859_1) is not supported.
Created attachment 556 [details] Patch for UrlConfig.java; file contains the diff
Created attachment 557 [details] Patch for MainFrame.java; file contains the diff
Created attachment 559 [details] Patch for HtmlParser.java; file contains the diff
With the three patches I have attached, the code (up to 2001.09.15 nightly build) now compiles and runs in JDK1.2! Let's be careful so that we do not introduce any more JDK1.3+ functionality.
Bug fixed 2001.09.27.
Marking all bugs RESOLVED before JMeter 1.8's release date as VERIFIED. Yes, it's pretty poor QA procedure, but there's bugs here lingering since JMeter 1.6, and we need to clean up a little.
Bulk-closing all bugs RESOLVED before JMeter 1.8 release date.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/765