]
Hardy Ferentschik updated HV-302:
---------------------------------
Assignee: Hardy Ferentschik (was: Gunnar Morling)
JAXB shouldn't be required when not using XML configuration
-----------------------------------------------------------
Key: HV-302
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-302
Project: Hibernate Validator
Issue Type: Improvement
Components: engine
Affects Versions: 4.1.0.Beta1
Reporter: Gunnar Morling
Assignee: Hardy Ferentschik
Fix For: 4.1.0
Attachments: HV-302.diff
By calling Configuration#ignoreXmlConfiguration() any XML config files (validation.xml,
mapping XML files) are ignored by HV. Nevertheless JAXB is required on the class path, as
in any case the class org.hibernate.validator.xml.XmlMappingParser (which imports
javax.xml.bind.*) is loaded, also if no XML mapping files are to be processed.
XmlMappingParser should only be loaded, when at least one XML mapping exists. While this
makes no difference when running on Java 6 (as JAXB is part of the Java runtime itself),
this allows to use HV on Java 5 without adding JAXB (and its transitive dependencies) to
the class path.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: