JDK-6340041 : Matcher appendTail and appendReplacement should take CharSequence
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.regex
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-10-21
  • Updated: 2010-04-02
  • Resolved: 2006-11-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
appendTail and appendReplacement currently take StringBuffer as arguments and the better performing StringBuilder cannot be used.

JUSTIFICATION :
JDK1.5 adds the more performance-oriented StringBuilder. Matcher will not work with StringBuilder however. If appendTail and appendReplacement took CharSequence then either StringBuffer or StringBuilder could be used as arguments.

Comments
EVALUATION A better approach is to add new methods that accept a "Appendable". Plan for dolphin.
14-11-2006