- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
error: illegal inheritance;
Mon, 2009-06-08, 17:45
Hi,
I grabbed a nightly scala 2.8 build and tried to build some of my
tests with it. I used Specs 1.5 for the testing framework but when I
did the build the following error occurred.
[WARNING] error: error while loading Specification, Scala signature
Specification has wrong version
[WARNING] expected: 5.0
[WARNING] found: 4.1 in
/home/jeichar/.m2/repository/org/scala-tools/testing/specs/1.5.0/specs-1.5.0.jar(org/specs/Specification.class)
[WARNING] /home/jeichar/Projects/mvn-scala-skin/src/test/scala/pscript/io/FilesSpec.scala:7:
error: illegal inheritance;
[WARNING] self-type pscript.io.FilesSpec.type does not conform to
org.specs.Specification's selftype org.specs.Specification
[WARNING] object FilesSpec extends Specification{
From the research I have done it has some thing to do with self types
but I didnt really understand the solutions. But I am only getting
this when I use scala 2.8. The version I am using was downloaded
about June 3rd or so.
Any ideas as to why this is happening? Do I have to compile specs
with 2.8.0 to make it work?
Jesse
Mon, 2009-06-08, 18:07
#2
Re: error: illegal inheritance;
On Mon, Jun 08, 2009 at 06:45:15PM +0200, Jesse Eichar wrote:
> Any ideas as to why this is happening? Do I have to compile specs
> with 2.8.0 to make it work?
Yes. The pickler format changed, and since we're nowhere near binary
compatibility anyway, it was determined that temporarily supporting the
old format added useless complexity. Better to obviously break than
subtly break with AbstractMethodErrors and etc.
So yes, you need to compile specs using 2.8.
On Mon, Jun 8, 2009 at 12:45 PM, Jesse Eichar <jeichar [dot] w [at] gmail [dot] com> wrote:
--
http://erikengbrecht.blogspot.com/