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=23230>. 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=23230 Struts Binary 20030917 doesn't run on Java 1.3 ------- Additional Comments From [EMAIL PROTECTED] 2003-09-20 01:02 ------- Well I *did* found some code using StringBuffer.append(StringBuffer), in RequestUtils. I guess there is more code like this. The problem is *not* the use of this function as it is. If you compile this on Java 1.3 you should have no problems (because there *is* a method called StringBuffer.append(Object) that works fine). But the binaries where compiled on Java 1.4. So, when I try to run them from Java 1.3 (WAS 4), it is already "linked" to StringBuffer.append(StringBuffer). This is the code: /** * Return the string representing the scheme, server, and port number of * the current request. * * @param scheme The scheme name to use * @param server The server name to use * @param port The port value to use * @return StringBuffer in the form scheme: server: port * @since Struts 1.2.0 */ public static StringBuffer createServerStringBuffer(String scheme,String server,int port) { StringBuffer url = new StringBuffer(); if (port < 0) { port = 80; // Work around java.net.URL bug } url.append(scheme); url.append("://"); url.append(server); if ((scheme.equals("http") && (port != 80)) || (scheme.equals("https") && (port != 443))) { url.append(':'); url.append(port); } return url; } /** * Return the string representing the scheme, server, and port number of * the current request. * * @param scheme The scheme name to use * @param server The server name to use * @param port The port value to use * @param uri The uri value to use * @return StringBuffer in the form scheme: server: port * @since Struts 1.2.0 */ public static StringBuffer createServerUriStringBuffer(String scheme,String server,int port,String uri) { StringBuffer serverUri = createServerStringBuffer(scheme,server,port); serverUri.append(uri); return serverUri; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
