Details

    • Type: Bug Bug
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.4
    • Fix Version/s: None
    • Component/s: jsr303
    • Labels:
      None
    • Environment:

      JDK 1.6, Windows, Eclipse 3.7

      Description

      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.

      1. bval.zip
        3 kB
        Romain Manni-Bucau
      2. ValidationTest.jar
        32 kB
        Sascha Vujevic

        Activity

        Sascha Vujevic created issue -
        Sascha Vujevic made changes -
        Field Original Value New Value
        Attachment ValidationTest.jar [ 12533037 ]
        Sascha Vujevic made changes -
        Description In the Test i have attached in this bug, i have a @Size-Constraint on a method. In version 0.3 of bval-jsr303 it worked.
        In version 0.4 there were 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.
        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.
        Romain Manni-Bucau made changes -
        Attachment bval.zip [ 12533282 ]
        Matt Benson made changes -
        Assignee Matt Benson [ mbenson ]
        Matt Benson made changes -
        Status Open [ 1 ] In Progress [ 3 ]

          People

          • Assignee:
            Matt Benson
            Reporter:
            Sascha Vujevic
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development