This page is no longer maintained — Please continue to the home page at www.scala-lang.org

2.8 RC8

3 replies
odersky
Joined: 2008-07-29,
User offline. Last seen 45 weeks 6 days ago.

Just a quick explanation regarding the last 2.8 RC. We had to do one
one more because SBT worked sometimes really slow because the
classpath of the Scala compiler was not cached. That has been fixed
now. Another set of problems concerned sbaz; these caused some delays
in the RC but they are also fixed now. So anyway, I sincerely hope
that this is the last iteration. If everybody concerned can do the
effort to verify that tools work that would be greatly appreciated.
We'd need any report of failure back by Monday and if all goes well
we'll release the beta then on Tuesday.

Cheers

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: 2.8 RC8

Hey Martin,

On Thu, 2010-01-21 at 16:46 +0100, martin odersky wrote:
> If everybody concerned can do the
> effort to verify that tools work that would be greatly appreciated.

All of configgy's tests (which use specs) pass with RC8.

I also ported a few internal modules (tens of thousands of Scala code)
recently and all of the tests pass with RC8 too. It took a decent amount
of effort to port the code, but most of it was mechanical.

After all compiler errors were fixed, there were two behaviour changes
that caused test failures:

- There was a case where Set.map was called and the result was an
Iterable in 2.7.x and a Set in 2.8.x. The latter caused duplicate
elements in the resulting collection to be discarded, causing the
failure.

- Passing null in a Java varargs method seems to behave different in
2.8.x (before anyone says anything, it's a third party Java library,
don't blame me ;)).

Maybe that helps other people porting applications.

Best,
Ismael

Johannes Rudolph
Joined: 2008-12-17,
User offline. Last seen 29 weeks 20 hours ago.
Re: 2.8 RC8

On Thu, Jan 21, 2010 at 5:19 PM, Ismael Juma wrote:
> - Passing null in a Java varargs method seems to behave different in
> 2.8.x (before anyone says anything, it's a third party Java library,
> don't blame me ;)).

Yeah, it's now consistent with calling Scala varargs parameters: if
you mean to pass all vararg parameters as a list you have to be
specific and annotate them with :_*. In Java and in former Scala
versions, when there is only one null parameter, it isn't treated as
one vararg parameter but as a null parameter array. At least in Java
there's a warning message which says you should explicitly cast the
object into the type you expect it to be.

> Maybe that helps other people porting applications.

Will there be a migration guide? This stuff should be in there.

odersky
Joined: 2008-07-29,
User offline. Last seen 45 weeks 6 days ago.
Re: 2.8 RC8

On Thu, Jan 21, 2010 at 5:51 PM, Johannes Rudolph
wrote:
> On Thu, Jan 21, 2010 at 5:19 PM, Ismael Juma wrote:
>> - Passing null in a Java varargs method seems to behave different in
>> 2.8.x (before anyone says anything, it's a third party Java library,
>> don't blame me ;)).
>
> Yeah, it's now consistent with calling Scala varargs parameters: if
> you mean to pass all vararg parameters as a list you have to be
> specific and annotate them with :_*. In Java and in former Scala
> versions, when there is only one null parameter, it isn't treated as
> one vararg parameter but as a null parameter array. At least in Java
> there's a warning message which says you should explicitly cast the
> object into the type you expect it to be.
>
>> Maybe that helps other people porting applications.
>
> Will there be a migration guide? This stuff should be in there.
>
I agree that a migration guide would be very helpful. Anybody wants to
go ahead and collect material?

Thanks

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland