Author: bago Date: Fri Sep 21 03:04:30 2007 New Revision: 578037 URL: http://svn.apache.org/viewvc?rev=578037&view=rev Log: Restore java 1.4 compatibility. new StringBuffer(CharSequence) is a java5 constructor.
Modified: james/jsieve/trunk/src/main/java/org/apache/jsieve/ScriptCoordinate.java Modified: james/jsieve/trunk/src/main/java/org/apache/jsieve/ScriptCoordinate.java URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/main/java/org/apache/jsieve/ScriptCoordinate.java?rev=578037&r1=578036&r2=578037&view=diff ============================================================================== --- james/jsieve/trunk/src/main/java/org/apache/jsieve/ScriptCoordinate.java (original) +++ james/jsieve/trunk/src/main/java/org/apache/jsieve/ScriptCoordinate.java Fri Sep 21 03:04:30 2007 @@ -140,7 +140,7 @@ if (message instanceof StringBuffer) { buffer = (StringBuffer) message; } else { - buffer = new StringBuffer(message); + buffer = new StringBuffer(message.toString()); } buffer.append(" Line "); buffer.append(startLineNumber); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]