Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: JiBX 1.2.1
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
Assume two projects A and B are interdependent.
Say a project A has a first-binding.xml as below:
binding xmlns:tns="http://url">
<namespace uri="http://url" prefix="tns" />
<mapping abstract="true" type-name="tns:First" class="projectA.dto.FirstDTO">
<value style="attribute" name="identifier" field="identifier" usage="optional"/>
</mapping>
</binding>
Say a project B has a binding.xml as below:
binding xmlns:tns="http://url">
<namespace uri="http://url" prefix="tns" />
<include path="first-binding.xml" />
<mapping abstract="true" type-name="tns:First" class="projectB.dto.SecondDTO">
<value style="attribute" name="identifier" field="identifier" usage="optional"/>
</mapping>
</binding>
Once I have successfully built Project A and then when I try to compile Project B.
The following build error:
Internal error - cannot modify class projectA.common.dto.FirstDTO loaded from D:\repo\bundles\base\common\1.0common-base-1.0.jar
Please advice.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Component/s | eclipse-plugin [ 13391 ] | |
| Component/s | core [ 10676 ] | |
| Component/s | maven plugin [ 11936 ] | |
| Assignee | Dennis Sosnoski [ dsosnoski ] |
This error means that the B binding is working directly with one of the classes in the A binding (included in the 1.0common-base-1.0.jar).
It would also occur if you used an <include> in the B binding to reference the A binding without precompiled='true'.
If you don't think either of these situations apply, please supply a test case demonstrating the problem.