Arrow_left   Arrow_right
 
  #1000141

IDE error,can not recognize inheritance

    • Created on: Tue, 31 Aug 2010 (over 1 year ago)
    • Reported by: huiwen.han
    • Assigned to: Miles Sabin
    • Milestone: -
    • Type: Defect
    • Version: 2.8.0.final
    • Status: Invalid
    • Priority: Normal (3)
    • Component: -
    • Permission type: None
    • Fixed in version: -
    • Eclipse version: Galileo
    import net.lag.configgy.Configgy
    import org.specs.Specification

    abstract class ConfiguredSpecification extends Specification {
    try {
    Configgy.configure("config/test.conf")
    } catch {
    case ex: Exception => ex.printStackTrace()
    }

    lazy val config = Configgy.config
    }

    error message:

    Description Resource Path Location Type
    illegal inheritance; self-type com.xxx.webahead.steer.gizzard.preference.ConfiguredSpecification does not conform to org.specs.Specification's selftype org.specs.Specification ConfiguredSpecification.scala /gizzard_prefz/src/test/scala/com/xxx/webahead/steer/gizzard/preference line 6 Scala Problem


    Multiple markers at this line
    - org.specs.Specification does not have a constructor
    - illegal inheritance; self-type com.xxx.webahead.steer.gizzard.preference.ConfiguredSpecification does not conform to org{org.type}.specs
    {org.specs.type}.Specification's selftype org.specs.Specification
    - org.specs.Specification does not have a constructor
    - illegal inheritance; superclass Specification is not a subclass of the superclass Object of the mixin trait ScalaObject
    - illegal inheritance; self-type com.xxx.webahead.steer.gizzard.preference.ConfiguredSpecification does not conform to org.specs.Specification's
    selftype org.specs.Specification
    - illegal inheritance; superclass Specification is not a subclass of the superclass Object of the mixin trait ScalaObject
  • Followers
     
    Ico-users Miles Sabin (Assigned To) 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Aug 31, 2010 @ 11:21AM UTC * By Miles Sabin

    Does this compile correctly using scalac on the command line?
    User picture

          on Aug 31, 2010 @ 05:13PM UTC * By huiwen.han

    Yes ,it can compile correctly using scalac
    User picture

          on Aug 31, 2010 @ 06:18PM UTC * By Miles Sabin

    Status changed from New to Invalid
    Time Expenditure
    Loading