Google Announces Contracts for Java

. February 11, 2011 . 0 Comments

Google has announced Contracts for Java, aimed at saving time debugging Java code.

Contracts for Java is a new open source tool. Preconditions, postconditions, and invariants are added as Java boolean expressions inside annotations. By default these do nothing, but enabled via a JVM argument, they’re checked at runtime.

The interface is now precise and every class that implements it can be checked at runtime.

Contracts are a powerful language feature and can provide great benefit if used correctly.

Contracts for Java is based on Modern Jass by Johannes Rieken. Rather than being a full time project it was conceived and developed in the 20% time of two software engineers and then developed further through an internship.

More info: http://google-opensource.blogspot.com/2011/02/contracts-for-java.html

Share

Category: News

Leave a Reply

Your email address will not be published. Required fields are marked *