cancel
Showing results for 
Search instead for 
Did you mean: 

The type BannerSliderComponent must implement the inherited abstract method

Former Member
0 Kudos

I extended an already existing and working component by adding a boolean attribute. After running ant clean all two errors occured.

  [yjavac] 1. ERROR in D:\Development\hybris-ci\build\hybris\bin\custom\\core\src\com\company\\core\jalo\components\BannerSliderComponent.java (at line 9)
    [yjavac]     public class BannerSliderComponent extends GeneratedBannerSliderComponent
    [yjavac]                  ^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] The type BannerSliderComponent must implement the inherited abstract method GeneratedBannerSliderComponent.isSubStage(SessionContext)
    [yjavac] ----------
    [yjavac] 2. ERROR in D:\Development\hybris-ci\build\hybris\bin\custom\\core\src\com\company\\core\jalo\components\BannerSliderComponent.java (at line 9)
    [yjavac]     public class BannerSliderComponent extends GeneratedBannerSliderComponent
    [yjavac]                  ^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] The type BannerSliderComponent must implement the inherited abstract method GeneratedBannerSliderComponent.setSubStage(SessionContext, Boolean)
    [yjavac] ----------
    [yjavac] 2 problems (2 errors)

Checking my item definition in the items.xml:

  <itemtype code="BannerSliderComponent"
                       extends="SimpleCMSComponent" autocreate="true" generate="true"
                       jaloclass="com.babiel..core.jalo.components.BannerSliderComponent">
                 <description> Teaser Component with background image</description>
                 <attributes>
                     <attribute qualifier="banners" type="BannerComponents">
                         <description>the banners</description>
                         <modifiers/>
                         <persistence type="property"/>
                     </attribute>
                     <attribute qualifier="subStage" type="java.lang.Boolean">
                         <modifiers optional="false"/>
                         <defaultvalue>java.lang.Boolean.FALSE</defaultvalue>
                     </attribute>
                 </attributes>
             </itemtype>

I was not able to find any problem here. Can anybody tell me what's the issue with the generation of this component?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Remove the file BannerSliderComponent.java. It is a jalo class that is not removed by ant clean. Then ant clean all

Former Member
0 Kudos

Already did that - no effect

Former Member
0 Kudos
 <persistence type="property"/>


is missing