on 08-30-2017 9:58 AM
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?
Hi,
Remove the file BannerSliderComponent.java. It is a jalo class that is not removed by ant clean. Then ant clean all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.