Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > 1.5: No support for StringBuilder

Reply
Thread Tools

1.5: No support for StringBuilder

 
 
Timo Nentwig
Guest
Posts: n/a
 
      04-04-2004
Hi!

SimpleDateFormat.parse() does not support StringBuilder in 1.5-beta1 and
I assume there are plenty of other methods to which the same applies as
well.

Did sun forget that?!

Timo

P.S. Why doesn't StringBuffer no more compile with current versions of
jikes?
 
Reply With Quote
 
 
 
 
Neal Gafter
Guest
Posts: n/a
 
      04-04-2004
Timo Nentwig wrote:
> SimpleDateFormat.parse() does not support StringBuilder in 1.5-beta1 and
> I assume there are plenty of other methods to which the same applies as
> well.
>
> Did sun forget that?!


Yes and no. We did not do a survey of existing methods that could be retrofit
with support for StringBuilder except in some core libraries, and although we
expect to do that, probably not in time for 1.5. We would not want to slip the
release for something like this.

> P.S. Why doesn't StringBuffer no more compile with current versions of
> jikes?


StringBuffer now uses covariant returns, which are not implemented by jikes.

 
Reply With Quote
 
 
 
 
Timo Nentwig
Guest
Posts: n/a
 
      04-04-2004
Neal Gafter wrote:
> StringBuffer now uses covariant returns, which are not implemented by
> jikes.


What are convariant returns?
 
Reply With Quote
 
Neal Gafter
Guest
Posts: n/a
 
      04-05-2004
Timo Nentwig wrote:
> What are covariant returns?


covariant returns are part of jsr14. Essentially, the covariant returns
language extension allows a method overrider to return a subtype of the type
returned by the overridden method. For example:

class A implements Cloneable {
public A clone() { // allowed
return (A) super.clone();
}
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
string vs stringbuilder H.G.Srivatsa ASP .Net 3 08-25-2005 01:55 PM
Double Quotes in a stringbuilder =?Utf-8?B?SnVzdGlu?= ASP .Net 2 03-18-2005 12:57 AM
Does a StringBuilder effect Viewstate variable size? darrel ASP .Net 2 01-28-2005 11:31 PM
How to reset a StringBuilder? ESPN Lover ASP .Net 2 10-14-2004 03:42 PM
no stringbuilder in C#2.0? =?Utf-8?B?SGFuZGk=?= ASP .Net 2 09-11-2004 08:27 AM



Advertisments