String.ltrim() and rtrim() methods RFE

Nick Radov nradov at axolotl.com
Wed Nov 14 02:21:37 UTC 2007


I would like to reopen discussion of Bug ID: 4074696 <
http://bugs.sun.com/view_bug.do?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
www.axolotl.com 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20071113/db50ecab/attachment.html>


More information about the core-libs-dev mailing list