[jboss-jira] [JBoss JIRA] Commented: (JBJCA-133) Create bean validation handler class

Jeff Zhang (JIRA) jira-events at lists.jboss.org
Wed Aug 5 10:05:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBJCA-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12479033#action_12479033 ] 

Jeff Zhang commented on JBJCA-133:
----------------------------------

We meet compile fail here.

      Set<ConstraintViolation<Object>> errors = v.validate(object, Default.class);
      if (errors != null && errors.size() > 0)
      {
         Set<ConstraintViolation<?>> newErrors = new HashSet<ConstraintViolation<?>>();
         throw new ConstraintViolationException(errors); //can't compile here
      }

By now, use Set errors = v.validate(object, Default.class);
and declare @SuppressWarnings("unchecked") on the method

> Create bean validation handler class
> ------------------------------------
>
>                 Key: JBJCA-133
>                 URL: https://jira.jboss.org/jira/browse/JBJCA-133
>             Project: JBoss JCA
>          Issue Type: Task
>          Components: Standalone
>            Reporter: Jesper Pedersen
>            Assignee: Jeff Zhang
>             Fix For: 1.0.0.Alpha3
>
>
> Create a class that will handle the bean validation for the JCA 1.6 deployer chain.
> The class should be called BeanValidation - located in sjc/src/main/java/org/jboss/jca/sjc/deployers/ra/ for now - and contain the method
>   public static void validateObject(Object object) throws ConstraintViolationException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list