From 51ae6845ad0aaa1b8ea6f002ddd4f8ded45a9dbc Mon Sep 17 00:00:00 2001 From: Stevo Slavic Date: Tue, 20 Mar 2012 19:14:00 +0100 Subject: [PATCH] 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 --- build.gradle | 2 +- spring-oxm/oxm.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 25792aecd4..f70b755a31 100644 --- a/build.gradle +++ b/build.gradle @@ -249,7 +249,7 @@ project('spring-oxm') { compile "commons-lang:commons-lang:2.5" compile("com.thoughtworks.xstream:xstream:1.3.1", optional) compile("com.sun.xml.bind:jaxb-impl:2.1.7", optional) - compile("org.jibx:jibx-run:1.1.5", optional) + compile("org.jibx:jibx-run:1.2.3", optional) compile("org.apache.xmlbeans:xmlbeans:2.4.0", optional) compile("org.codehaus.castor:castor-xml:1.3.2", optional) testCompile "org.codehaus.jettison:jettison:1.0.1" diff --git a/spring-oxm/oxm.gradle b/spring-oxm/oxm.gradle index ede4d5cbb3..23e2844027 100644 --- a/spring-oxm/oxm.gradle +++ b/spring-oxm/oxm.gradle @@ -9,7 +9,7 @@ dependencies { castor "velocity:velocity:1.5" xjc "com.sun.xml:com.springsource.com.sun.tools.xjc:2.1.7" xmlbeans "org.apache.xmlbeans:com.springsource.org.apache.xmlbeans:2.4.0" - jibx "org.jibx:jibx-bind:1.1.5" + jibx "org.jibx:jibx-bind:1.2.3" jibx "bcel:bcel:5.1" }