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

Crash only in eclipse scala builder on Seq[Class[_]]

2 replies
Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.

val numberTypes: Seq[Class[_]] = Seq(classOf[java.lang.Byte], classOf[java.lang.Short] ... )
seems to crash the eclipse plugin, including the builder (though not on clean/build) with a stack overflow, even when I increase the stack size to a few Mb, with or without the type annotation on the val.
The command line scalac seems to be fine (although maybe it has a common denominator with clean build).
I solved the problem by discovering a new syntax: Seq(classOf[java.lang.Byte]: Class[_], classOf... -- putting a type annotation on each element. I knew about :_* but I thought it was a specialized syntax.
This is plugin 2.7.2final.
Has this been fixed, or is it a known bug? If not could I ask you a favor to file it for me since when you reply I won't be around Internet access. When was/will the fix be released?
Thanks a ton!
 
 

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Crash only in eclipse scala builder on Seq[Class[_]]

On Wed, Jan 7, 2009 at 8:27 PM, Naftoli Gugenheim wrote:
> val numberTypes: Seq[Class[_]] = Seq(classOf[java.lang.Byte],
> classOf[java.lang.Short] ... )
> seems to crash the eclipse plugin, including the builder (though not on
> clean/build) with a stack overflow, even when I increase the stack size to a
> few Mb, with or without the type annotation on the val.

I haven't been able to guess enough of the context of this to be able
to reproduce the problem ... if you can put together a small, complete
and reproducible test case that'd be really helpful.

> Has this been fixed, or is it a known bug? If not could I ask you a favor to
> file it for me since when you reply I won't be around Internet access. When
> was/will the fix be released?

2.7.3.RC1 is available now and RC2 is imminent ... please see if
you're able to reproduce the problem on either or both and open a
ticket if you can.

Thanks ...

Cheers,

Miles

Sean McDirmid
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Crash only in eclipse scala builder on Seq[Class[_]]
Sounds like a resident compiler bug. If you want to test it from the command line, use scalac -Yresident and recompile the file twice from the resident shell. 

On Thu, Jan 8, 2009 at 4:27 AM, Naftoli Gugenheim <naftoligug [at] gmail [dot] com> wrote:
val numberTypes: Seq[Class[_]] = Seq(classOf[java.lang.Byte], classOf[java.lang.Short] ... ) seems to crash the eclipse plugin, including the builder (though not on clean/build) with a stack overflow, even when I increase the stack size to a few Mb, with or without the type annotation on the val. The command line scalac seems to be fine (although maybe it has a common denominator with clean build). I solved the problem by discovering a new syntax: Seq(classOf[java.lang.Byte]: Class[_], classOf... -- putting a type annotation on each element. I knew about :_* but I thought it was a specialized syntax. This is plugin 2.7.2final. Has this been fixed, or is it a known bug? If not could I ask you a favor to file it for me since when you reply I won't be around Internet access. When was/will the fix be released? Thanks a ton!    

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