bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Blyakher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BVAL-128) Validation of bean that implements Closeable results in an NPE
Date Thu, 01 May 2014 21:38:24 GMT

     [ https://issues.apache.org/jira/browse/BVAL-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Blyakher updated BVAL-128:
----------------------------------

    Attachment: BVAL-128_1.patch

Proposed fix attached.

> Validation of bean that implements Closeable results in an NPE
> --------------------------------------------------------------
>
>                 Key: BVAL-128
>                 URL: https://issues.apache.org/jira/browse/BVAL-128
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 1.1.0-alpha
>            Reporter: Michael Blyakher
>         Attachments: BVAL-128_1.patch
>
>
> Validating a bean that implements Closeable results in an NPE. The code to reproduce
this is below.
>     public static void main( String[] args )
>     {        
> 		ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
> 		Validator validator = factory.getValidator();
> 		
> 		validator.validate(new CloneableBean());
>     }
>     
>     private static class CloneableBean implements Cloneable {}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message