Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4860681
Votes 0
Synopsis (bf) Add CharBuffer.put(CharSequence)
Category java:classes_nio
Reported Against mantis-beta
Release Fixed
State 6-Fix Understood, request for enhancement
Priority: 4-Low
Related Bugs
Submit Date 08-MAY-2003
Description




A DESCRIPTION OF THE REQUEST :
CharBuffer needs a put() method that takes a CharSequence.

JUSTIFICATION :
Right now it has a put(CharBuffer src) and put(String src), but no put(StringBuffer src) method or put(CharSequence src).  If one has a CharSequence or a StringBuffer, it first has to turn them into a String before it can be put into a buffer.  The specific methods for CharBuffer, String, and StringBuffer are really unecessary if there is a put(CharSequence src), unless they could be implemented more efficiently by  customer  the real type of a CharSequence.
(Review ID: 185395) 
======================================================================
Work Around
N/A
Evaluation
Good idea.  --   xxxxx@xxxxx   2003/5/14
Comments
  
  Include a link with my name & email   

Submitted On 10-JAN-2005
ranko2
Now that we have the append() methods , the put() methods should be cleaned up.  The put () methods that take CharSequence  should be added and the other specific ones depracated.  There should be the same versions of put() with CharSequence  as there are with a char[[



PLEASE NOTE: JDK6 is formerly known as Project Mustang