]
Kevin Pollet commented on HV-456:
---------------------------------
Maybe we could provide two jar of the AP (the shaded and the original AP jar). I'm
thinking that the shaded is only a "distribution" artifact of the AP to simplify
the user setup in IDEs and the use with the maven annotation plugin (if the shaded jar is
deployed with the original jar). The original jar could be used when the AP is added to
the project class path (like a normal maven dependency). The disadvantage of this approach
is that it can be a source of misuse for the user.
WDYT ?
The MethodValidator could not handle Proxied objects like in EJB
environment
----------------------------------------------------------------------------
Key: HV-456
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-456
Project: Hibernate Validator
Issue Type: Bug
Components: engine
Affects Versions: 4.2.0.Beta2
Environment: linux, java 1.6.0_24, hibernate-validator-4.2.0.Beta2,
JBoss-5.1.0.GA
Reporter: Ingo Bruell
Using the MethodValidator with proxied objects via an interceptor in an ejb environment
throws the following exception:
javax.validation.ConstraintDeclarationException: Only the root method of an overridden
method in an inheritance hierarchy may be annotated with parameter constraints. The
following method itself has no parameter constraints but it is not defined on a sub-type
of class de.enexoma.smartmeter.server.facade.config.ResourceBundleFacadeBean:
MethodMetaData [method=public abstract java.util.Map
de.enexoma.smartmeter.server.facade.ResourceBundleFacade.get(java.lang.String) throws
de.enexoma.smartmeter.server.error.EnexomaException, parameterMetaData=[ParameterMetaData
[type=class java.lang.String], [index=0], name=arg0], constraints=[], isCascading=false]],
constraints=[], isCascading=false, hasParameterConstraints=false]
The method in the "real" class has constraints defined:
public Map<Locale,List<ResourceBundle>> get(@NotNull @Size(min=1)final
String appName)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: