extends Super in com.github.nscala_time.time.DurationBuilder

79 views Asked by At

I recently downloaded source code of com.github.nscala_time package version 2.11, After set up dependency in Maven, I got lots of errors, I checked one file com.github.nscala_time.time.DurationBuilder, it got a line like:

class DurationBuilder(val underlying: Period) extends Super {..

There are no class or type named "Super" in the same package or imported packages. I am wondering scala has a type called "Super"? the Eclipse scala 2.11 compiler complains about cannot find type "Super"

2

There are 2 answers

1
James On

the solution I have is to add a trait named "Super" `package com.github.nscala_time.time

trait Super {

}`

It seems to me the author of the library forgot to upload the class file

1
thoredge On

I think you should find it in the object time in package com.github.nscala_time. Try to add this import:

import com.github.nscala_time.time.Super