Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21362
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Substring changes (JDK 1.7) |
| Date | 2013-01-12 09:59 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <kcs8b2$lkd$1@dont-email.me> (permalink) |
| References | (2 earlier) <al8rs6Fo963U1@mid.individual.net> <substrings-20130111062412@ram.dialup.fu-berlin.de> <al9pq3Fua06U1@mid.individual.net> <n5fve81rlc7vk6rpogslgse33hfiov73rj@4ax.com> <aldijmFpv7lU1@mid.individual.net> |
On 1/12/2013 8:50 AM, Robert Klemme wrote: > On 11.01.2013 08:19, Roedy Green wrote: >> On Fri, 11 Jan 2013 07:29:16 +0100, Robert Klemme >> <shortcutter@googlemail.com> wrote, quoted or indirectly quoted >> someone who said : >> >>> Well, shouldn't such a basic thing be part of the standard library? >> >> String is final and many things take a String parm and nothing else. >> You can create something similar and use it like String. > > There is no reason in what you say that it should not be part of the std > lib. javax.swing.text.Segment preserves the semantics of a shared buffer. It's not a drop-in replacement for String (many of the methods differ or are absent). But Segment is extensible, so critical missing methods could be added. I wonder if the best way to go would be to cheat and have String extended into a SharedString with the old implementation. This would violate the finality of String, but it's possible to synthesize these sorts of things if one has control of the JVM. Obviously, this needs to come from Oracle.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-10 14:38 +0100
Re: Substring changes (JDK 1.7) markspace <markspace@nospam.nospam> - 2013-01-10 08:15 -0800
Re: Substring changes (JDK 1.7) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2013-01-10 10:48 -0600
Re: Substring changes (JDK 1.7) markspace <markspace@nospam.nospam> - 2013-01-10 09:22 -0800
Re: Substring changes (JDK 1.7) Lars Enderin <lars.enderin@telia.com> - 2013-01-10 19:35 +0100
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-10 20:08 +0100
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-10 20:12 +0100
Re: Substring changes (JDK 1.7) Roedy Green <see_website@mindprod.com.invalid> - 2013-01-10 12:22 -0800
Re: Substring changes (JDK 1.7) Robert Klemme <shortcutter@googlemail.com> - 2013-01-10 22:58 +0100
Re: Substring changes (JDK 1.7) Roedy Green <see_website@mindprod.com.invalid> - 2013-01-10 15:20 -0800
Re: Substring changes (JDK 1.7) Robert Klemme <shortcutter@googlemail.com> - 2013-01-11 07:29 +0100
Re: Substring changes (JDK 1.7) Roedy Green <see_website@mindprod.com.invalid> - 2013-01-10 23:19 -0800
Re: Substring changes (JDK 1.7) Robert Klemme <shortcutter@googlemail.com> - 2013-01-12 17:50 +0100
Re: Substring changes (JDK 1.7) markspace <markspace@nospam.nospam> - 2013-01-12 09:59 -0800
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-12 19:14 +0100
Re: Substring changes (JDK 1.7) markspace <markspace@nospam.nospam> - 2013-01-12 10:36 -0800
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-13 12:09 +0100
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-11 09:23 +0100
Re: Substring changes (JDK 1.7) "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-01-11 08:29 +0000
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-11 10:56 +0100
Re: Substring changes (JDK 1.7) Jan Burse <janburse@fastmail.fm> - 2013-01-11 14:30 +0100
csiph-web