Skip to content

Commit 0ba73d8

Browse files
committed
Fix JibxMarshallerTests failing on Windows
Before this change JibxMarshallerTests would fail on Windows with error message explaining that JiBX compiler generated classes are not found on classpath for binding with name 'binding'. Tests would execute well on Linux. Actual root cause of this bug is found to be in JiBX 1.1.5 release that is used to build Spring. Binding name can be explicitly specified in JiBX binding file. If omitted, when generating classes JiBX compiler as fall-back mechanism tries to derive binding name from binding file name. That logic had bug which gets manifested when configured binding file path has mixed Windows and Linux style file separators, as in case when mentioned JibxMarshallerTests are executed on Windows platform. This change introduces one of the two possible solutions - binding name is specified explicitly in binding.xml file so JiBX doesn't have to use the fall-back mechanism. Issue: SPR-8360
1 parent bb5c81e commit 0ba73d8

File tree

1 file changed

+1
-1
lines changed
  • spring-oxm/src/test/resources/org/springframework/oxm/jibx

1 file changed

+1
-1
lines changed

spring-oxm/src/test/resources/org/springframework/oxm/jibx/binding.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<binding>
2+
<binding name="binding">
33
<mapping name="flights" class="org.springframework.oxm.jibx.Flights">
44
<namespace uri="http://samples.springframework.org/flight" default="elements"/>
55
<collection field="flightList">

0 commit comments

Comments
 (0)