From dev-return-1458-apmail-bval-dev-archive=bval.apache.org@bval.apache.org Mon Jun 25 22:30:45 2012 Return-Path: X-Original-To: apmail-bval-dev-archive@www.apache.org Delivered-To: apmail-bval-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 228F298F2 for ; Mon, 25 Jun 2012 22:30:45 +0000 (UTC) Received: (qmail 89007 invoked by uid 500); 25 Jun 2012 22:30:45 -0000 Delivered-To: apmail-bval-dev-archive@bval.apache.org Received: (qmail 88834 invoked by uid 500); 25 Jun 2012 22:30:44 -0000 Mailing-List: contact dev-help@bval.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@bval.apache.org Delivered-To: mailing list dev@bval.apache.org Received: (qmail 88809 invoked by uid 99); 25 Jun 2012 22:30:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 22:30:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 4F8EB14283F for ; Mon, 25 Jun 2012 22:30:44 +0000 (UTC) Date: Mon, 25 Jun 2012 22:30:44 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: dev@bval.apache.org Message-ID: <374022026.53863.1340663444331.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2042453434.43800.1340367222812.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (BVAL-107) Validation of Return-Values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BVAL-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400981#comment-13400981 ] Romain Manni-Bucau commented on BVAL-107: ----------------------------------------- oki, thanks Matt! > Validation of Return-Values > --------------------------- > > Key: BVAL-107 > URL: https://issues.apache.org/jira/browse/BVAL-107 > Project: BVal > Issue Type: Bug > Components: jsr303 > Affects Versions: 0.4 > Environment: JDK 1.6, Windows, Eclipse 3.7 > Reporter: Sascha Vujevic > Assignee: Matt Benson > Attachments: ValidationTest.jar, bval.zip > > > In the Test i have attached i have a @Size-Constraint on a method for validation of the returnvalue. In version 0.3 of bval-jsr303 it worked. > In version 0.4 there is a change in the code: > The method org.apache.bval.jsr303.extensions.patchFactoryContextForMethodValidation is no longer activ. Therefore all Jsr303MetaBeanFactory were no longer changed to MethodValidatorMetaBeanFactory. > This has the affect that the method hasValidationConstraintsDefined() is used from Jsr303MetaBeanFactory which checks if there is a Constraint on the Method. If it is, a exception is thrown "Property %myMethod% does not follow javabean conventions". > Mayby i use the annotions for validating returnvalues in a wrong way. > I have attached an example. > Thank you for your help. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira