String.ltrim() and rtrim() methods RFE

Phil Race Phil.Race at Sun.COM
Wed Nov 14 04:01:16 UTC 2007

I note this has just two customer records and just a single  jdc vote 
despite having over eight years to
accumulate these whilst it was open, whereas popular issues quickly 
accumulate hundreds of votes.
Furthermore only one person has found it important enough to comment in 
the bug parade comments.
So I think you'd need to show that its a lot more widely needed than 
some low single digits number
of developers.


Nick Radov wrote:
> I would like to reopen discussion of Bug ID: 4074696 
> <> for possible 
> inclusion in jdk7. It seems to me that RFE was prematurely closed 
> without proper consideration. Many developers have needed to left or 
> right trim a String and I'm sure that same code has been rewritten 
> thousands of times in applications. It would really help to have them 
> in the standard library, and the impact on compiled file size would be 
> minimal. The evaluation reason giving for closing the bug was "You can 
> write this yourself and get reasonable performance with a modern VM." 
> Well, of course we can get reasonable performance, but that isn't 
> really the point. The reason for adding those methods to the standard 
> library is to reduce the amount of redundant, low-level code that 
> application developers have to write. Having to write those methods 
> ourselves in applications also forces the creation of 
> "StringUtilities" classes with a variety of static methods, which 
> somewhat defeats the purpose of OO design.
> If we can get this reopened I would be happy to take care of making 
> the actual code changes. I just requested the Developer role on the 
> jdk project so hopefully that will be approved soon.
> *Nick Radov · Research & Development Manager · Axolotl Corp*
> o: 650.964.1100 x 116
> 800 West El Camino Real Suite 270 Mountain View CA 94040
> Frost and Sullivan Awards | _Market Leadership_ 
> <> | _Business Development 
> Strategy Leadership_ <>
> /The information contained in this e-mail transmission may contain 
> confidential information. It is intended for the use of the addressee. 
> If you are not the intended recipient, any disclosure, copying, or 
> distribution of this information is strictly prohibited. If you 
> receive this message in error, please inform the sender immediately 
> and remove any record of this message./ 

More information about the core-libs-dev mailing list