Skip to Content
author's profile photo Former Member
Former Member

The type BannerSliderComponent must implement the inherited abstract method

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2017 at 09:55 AM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.