1.5: No support for StringBuilder

T

Timo Nentwig

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?
 
N

Neal Gafter

Timo said:
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.
 
N

Neal Gafter

Timo said:
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();
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top