Hibernate Validator
  1. Hibernate Validator
  2. HV-432

Create a Java agent to enfore method level validation (design by contract)

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0.Final
    • Fix Version/s: None
    • Component/s: engine
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      Google released Contract for Java - http://code.google.com/p/cofoja/ - which is a Java implementations for Design by Contract. Googles version uses a set of annotations, an annotation processor and a runtime java agent (see their documentation).

      We have all the pieces for doing this as well.

      • We have the constraint annotations
      • We have an annotation processor (obviously it does something else now, but we know how to write one)
      • And we have Byteman

      I wonder whether we couldn't put these things together and create our own Contract for Java.

        Activity

        There are no comments yet on this issue.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development