Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 51ae684

Browse files
sslaviccbeams
authored andcommitted
Fix JibxMarshallerTests failing on Windows
Before this change JibxMarshallerTests would fail on Windows with an error message explaining that JiBX compiler generated classes are not found on the classpath for binding with name 'binding'. Tests would execute well on Linux and OS X. Actual root cause of this bug is found to be in JiBX 1.1.5 release that is used to build Spring. The binding name can be explicitly specified in JiBX binding file. If omitted, when generating classes the JiBX compiler as fall-back mechanism tries to derive the binding name from the binding file name. That logic had a bug which gets manifested when configured binding file path has mixed Windows and *nix style file separators, as in case of JibxMarshallerTests being executed on a Windows platform. This commit resolves this issue by upgrading Spring's build from JiBX 1.1.5 to 1.2.3, as the bug mentioned was fixed in JiBX 1.2. See JIBX-441 for more details. Issue: SPR-8360
1 parent 0ca11d2 commit 51ae684

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ project('spring-oxm') {
249249
compile "commons-lang:commons-lang:2.5"
250250
compile("com.thoughtworks.xstream:xstream:1.3.1", optional)
251251
compile("com.sun.xml.bind:jaxb-impl:2.1.7", optional)
252-
compile("org.jibx:jibx-run:1.1.5", optional)
252+
compile("org.jibx:jibx-run:1.2.3", optional)
253253
compile("org.apache.xmlbeans:xmlbeans:2.4.0", optional)
254254
compile("org.codehaus.castor:castor-xml:1.3.2", optional)
255255
testCompile "org.codehaus.jettison:jettison:1.0.1"

spring-oxm/oxm.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
castor "velocity:velocity:1.5"
1010
xjc "com.sun.xml:com.springsource.com.sun.tools.xjc:2.1.7"
1111
xmlbeans "org.apache.xmlbeans:com.springsource.org.apache.xmlbeans:2.4.0"
12-
jibx "org.jibx:jibx-bind:1.1.5"
12+
jibx "org.jibx:jibx-bind:1.2.3"
1313
jibx "bcel:bcel:5.1"
1414
}
1515

0 commit comments

Comments
 (0)