JiBX

Precompiled classes not accessible while compiling

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: JiBX 1.2.1
  • Fix Version/s: None
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    0

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

Hide
Dennis Sosnoski added a comment -

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.

Show
Dennis Sosnoski added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: