The base class of my project has been jibx compiled and packaged in a jar.
However when the binding compiler runs for the derived classes, it modifies
the base classes as well. I get a NoSuchMethodFoundError when i try to
access a field or method in the superclass through an instance of the
derived class.
Is there some option to prevent Jibx from modifying the base classes again?

For example:

Base Class:

*

public* *class* ValueObject

{

*private* *int* no;

*public* *int* getNo()

{

*return* no;

}

*public* *void* setNo(*int* no)

{

*this*.no = no;

}

}

*binding.xml for base class:*

<?xml version="1.0" encoding="UTF-8"?>

<binding>

<mapping name="base" class="test.base.ValueObject">

<namespace uri="http://base.test"; default="elements"/>

<value name="no" field="no" usage="required"/>

</mapping>

</binding>

**

*Derived Class:*
*

public* *class* ClientValueObject *extends* ValueObject

{

*private* String name;

*public* String getName()

{

*return* name;

}

*public* *void* setName(String name)

{

*this*.name = name;

}

}

*binding.xml for derived class:*

<?xml version="1.0" encoding="UTF-8"?>

<binding>

<mapping name="derived" class="test.derived.ClientValueObject" >

<namespace uri="http://derived.test"; default="elements"/>

<structure map-as="test.base.ValueObject"/>

<value name="name" field="name" usage="required"/>

</mapping>

<mapping name="base" class="test.base.ValueObject" abstract="true">

<namespace uri="http://base.test"; default="elements"/>

<value name="no" field="no" usage="required"/>

</mapping>

</binding>

When i run the binding compiler for the base class it creates a
JiBX_JIBX_Test_src_test_base_bindingValueObject_access.class

When i run it for the derived class, it deletes this class.

* - Kaizer*

**
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to