#1000899

Bad code generated for inherited abstract method with generics

    • Created on: Mon, Feb 06 (3 months ago)
    • Reported by: skyluc
    • Assigned to: skyluc
    • Milestone: Helium
    • Type: Defect
    • Version: 2.0.0-final-29
    • Operative System: -
    • Status: Accepted
    • Priority: Normal (3)
    • Component: Wizard
    • Permission type: Public
    • Fixed in version: -
    • Eclipse version: All
    • Create the following trait:
    package t891
    trait ScalaTrait[K] {
      def id: K
    }

    • Create a new Scala class using the wizard, with ScalaTrait as one of the implemented traits, and "Inherited abstract methods" checked.
    The following code is generated:
    package t891
    import .K
    class ScalaClass3 extends ScalaTrait[K] {
    }

    The import .K is invalid and id is not generated.
  • Followers
     
    Ico-users skyluc (Assigned To) , Iulian Dragos 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Feb 06, 2012 @ 10:17pm UTC * By skyluc

    Status changed from New to Accepted
    User picture

          on May 07, 2012 @ 06:23pm UTC * By Mirco Dotta

    Component changed from Eclipse to Wizard
    User picture

          on May 07, 2012 @ 07:50pm UTC * By Mirco Dotta

    Assigned to set to skyluc
    Milestone changed from Backlog to Helium
    Time Expenditure
    Loading