cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Error during 4.8 -> 5 upgrade

cbelka
Participant
0 Kudos

I am getting the following compile error

 enter code here [yjavac] 1. ERROR in /software/hybris504/bin/custom/dealer/gensrc/de/deutschepost/ubbrief/meinpaket/dealer/jalo/GeneratedDealer.java (at line 495)
    [yjavac]     final Map<String, AttributeMode> tmp = new HashMap<String, AttributeMode>(Vendor.DEFAULT_INITIAL_ATTRIBUTES);
    [yjavac]                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] DEFAULT_INITIAL_ATTRIBUTES cannot be resolved or is not a field
    [yjavac] ----------
 

when migrating to 5.0.latest

The Class is generated by hybris , so i have no clue why this happens

 protected static final Map<String, AttributeMode> DEFAULT_INITIAL_ATTRIBUTES;
     static
     {
         final Map<String, AttributeMode> tmp = new HashMap<String, AttributeMode>(Vendor.DEFAULT_INITIAL_ATTRIBUTES);

the class is defined in my items xml as follows :

     <itemtype code="Dealer"
             jaloclass="de.deutschepost.ubbrief.meinpaket.dealer.jalo.Dealer"
             autocreate="true" extends="Vendor" generate="true">
             <attributes>
                 <attribute qualifier="dealerCompany" type="DealerCompany">
         

Did anyone ever have this issue or a clue why this happens ?

Accepted Solutions (0)

Answers (2)

Answers (2)

cbelka
Participant
0 Kudos

its coming form the old basecommerce extension:

 <itemtype code="Vendor"
         jaloclass="de.hybris.platform.ordersplitting.jalo.Vendor" extends="GenericItem"
         autocreate="true" generate="true">
         <deployment table="Vendors" typecode="2006" />
         <attributes>
             <attribute autocreate="true" qualifier="name"
                 type="localized:java.lang.String">
                 <modifiers read="true" write="true" search="true"
                     optional="true" />
                 <persistence type="property" />
             </attribute>
             <attribute qualifier="code" type="java.lang.String">
                 <modifiers initial="true" read="true" write="false"
                     optional="false" />
                 <persistence type="property" />
             </attribute>
         </attributes>
     </itemtype>
Former Member
0 Kudos

Looks like DEFAULT_INITIAL_ATTRIBUTES attribute was removed from Vendor type. Can you post -items.xml file containing itemtype code="Vendor", please?