cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can I change jaloclass location of Region type which comes from the box?

Former Member
0 Kudos
329

Hey! There's an issue in Region jaloclass which has missing setIsocode method. This causes npe while trying to change region's isocode. I want to use my own implementation of jalo class but it is impossible as I can not change the item.xml defined somewhere in the box. I know we can change attributes' descriptors by using AttributeDescriptor. I wander is there a method how to change the jalo class by impex?

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Kudos

While it is tempting to think of a syntactically correct ImpEx like

 UPDATE ComposedType;code[unique=true];jaloclass
 ;CodeOfTheItemtype;new.package.CodeOfTheItemtype

one should keep in mind that it will fail with java.lang.ClassNotFoundException: new.package.CodeOfTheItemtype.

Even if I succeed by creating new.package.GeneratedCodeOfTheItemtype and new.package.CodeOfTheItemtype classes or doing some other things to make this ImpEx pass, I won't do it. The next ant clean may remove some/all of the things created as a workaround, it will make the codebase less maintainable, and it may break some other things.

Former Member
0 Kudos

thank you very much! I made a subclass of Region with my custom jalo.

arvind-kumar_avinash
Active Contributor
0 Kudos

You are most welcome.

Answers (0)