Saturday, July 19, 2008

Pre and post condition validation with OVal as intruments of software architecture

I have for the past couple of weeks been fiddling around with OVal - the object validation framework for Java™.
Setting up a project to utilize OVal for the first time wasn't easy, as you can read in my post "Problems with IntelliJ AspectJ plugin".
I've created a simple Mavenized project, which should ease setting up, testing and getting an impression of the potential of OVal.

Saturday, July 12, 2008

Problems with IntelliJ AspectJ plugin - SOLVED

I've looked into Oval Java Validation Framework, which seems quite nifty. The problem with it is that it doesn't work right out of the box if you want the extra bonus features, such as pre and post validation. For that you need AspectJ support, and for that... Well, lets just say your learning curve put on some weight.

This post is regarding solving an issue you may get when trying to use IntelliJ's AspectJ plugin. When running the test I've added here from IntelliJ, You get the message:

Error: ExactAnnotationTypePattern was written by a newer version of AspectJ