[
https://issues.jboss.org/browse/AS7-5944?page=com.atlassian.jira.plugin.s...
]
Alexander Yerenkow commented on AS7-5944:
-----------------------------------------
Here's patches (In case you would user them):
---
connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java.orig 2012-11-14
23:35:33.000000000 +0000
+++
connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java 2012-09-21
12:14:04.000000000 +0000
@@ -92,7 +92,7 @@ public class JCAValidatorFactory impleme
if (configuration == null) {
ConstraintMapping mapping = new ConstraintMapping();
HibernateValidatorConfiguration config =
- Validation.byProvider(HibernateValidator.class).providerResolver(new
JBossProviderResolver()).configure();
+
Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new
JBossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;
---
jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java.orig 2012-11-15
00:06:15.000000000 +0000
+++
jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java 2012-09-21
12:14:04.000000000 +0000
@@ -78,7 +78,7 @@ public class JPALazyValidatorFactory imp
try {
SecurityActions.setContextClassLoader(oldTCCL);
ConstraintMapping mapping = new ConstraintMapping();
- HibernateValidatorConfiguration config =
Validation.byProvider(HibernateValidator.class).providerResolver(new
JbossProviderResolver()).configure();
+ HibernateValidatorConfiguration config =
Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new
JbossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;
---
ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java.orig 2012-11-14
23:36:12.000000000 +0000
+++ ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java 2012-09-21
12:14:04.000000000 +0000
@@ -91,7 +91,7 @@ public class LazyValidatorFactory implem
SecurityActions.setContextClassLoader(classLoader);
if (configuration == null) {
ConstraintMapping mapping = new ConstraintMapping();
- HibernateValidatorConfiguration config =
Validation.byProvider(HibernateValidator.class).providerResolver(new
JbossProviderResolver()).configure();
+ HibernateValidatorConfiguration config =
Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new
JbossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;
FreeBSD Generic compile problems
--------------------------------
Key: AS7-5944
URL:
https://issues.jboss.org/browse/AS7-5944
Project: Application Server 7
Issue Type: Feature Request
Components: Build System
Affects Versions: 7.1.3.Final (EAP)
Environment: FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
amd64
Reporter: Alexander Yerenkow
Assignee: Paul Gier
[ERROR]
//jboss-as-7.1.1.Final/connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java:[95,41]
incompatible types;
inferred type argument(s) java.lang.Object do not conform to bounds of type variable(s)
T
found :<T>javax.validation.bootstrap.ProviderSpecificBootstrap<T>
required: java.lang.Object
This easily fixed with changinng
Validation.byProvider(HibernateValidator.class)
To:
Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class)
This should be done in few more places:
jboss-as-7.1.3.Final/ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira