[
https://hibernate.onjira.com/browse/HV-532?page=com.atlassian.jira.plugin...
]
Gunnar Morling commented on HV-532:
-----------------------------------
{quote}
If so, we should move it to HV 5.
{quote}
+1. I'll look into it and see what it would mean to remove the cycle.
Remove package cycle between "core" and
"descriptor" packages
-------------------------------------------------------------
Key: HV-532
URL:
https://hibernate.onjira.com/browse/HV-532
Project: Hibernate Validator
Issue Type: Task
Components: engine
Affects Versions: 4.2.0.Final
Reporter: Gunnar Morling
Fix For: 4.3.0.Beta1
There is a cyclic dependency between the packages
{{org.hibernate.validator.metadata.core}} and
{{org.hibernate.validator.metadata.descriptor}} which should be removed.
I think the general problem is that {{ConstraintDescriptorImpl}} (which is now part of
the "descriptor" model) is used globally in HV. Probably there should be a
corresponding node in the internal model (actually we already have this with
{{MetaConstraint}}), of which {{ConstraintDescriptorImpl}} would only be a light-weight
view for external meta-model users.
In {{ConstraintDescriptorImpl}} there is also a lot of logic related to annotation
retrieval, which we now might move into the provider hierarchy similar to
{{BeanMetaDataImpl}}.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira