[hibernate-issues] [Hibernate-JIRA] Updated: (HV-302) JAXB shouldn't be required when not using XML configuration

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Apr 19 10:12:22 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list