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=3642>.
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=3642

           Summary: 2001.09.15 build does not compile in JDK1.2; dependency
                    on JDK1.3
           Product: JMeter
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to