gcontracts icon indicating copy to clipboard operation
gcontracts copied to clipboard

GContracts: Programming by Contract for Groovy

Results 9 gcontracts issues
Sort by recently updated
recently updated
newest added

When I attempt to compile a groovy trait, I get the following error: Groovy:Method '$_gc_computeOldVariables' is protected but should be public in interface '{class}' I get this message whether I...

Hi Andre, I want to create reusable contracts through annotations but @AnnotationContract is not longer available in version 1.2.12. It was available in 1.2.5 but suddenly it was deleted. How...

Trying to work around #48 I removed my `@Contracted` annotation, but all the contracts were still morphed into the generated code, and even more interestingly, the emitted bytecode had `@Contracted`...

When debugging code that uses `@Ensures` in IntelliJ, I always receive a NoSuchFieldError from within the `$_gc_computeOldVariables` method for the `__timeStamp__NNN_neverHappenNNNNNNNNNNNNN` field that Groovy automatically adds to the underlying bytecode...

If a validation closure contains expression statements, the list of boolean expressions ends up having nulls in it, which then cause NPEs in AssertStatementCreationUtility.getAssertionStatement.

Given this code (which I believe _should_ be valid): ``` @Ensures({ result.every { t -> t.target == target } }) Collection getMappings(Entity target) { // buncha code... } ``` The...

Why is that gcontracts requires a strict dependency to ASM 4.0 as it also depends on groovy-all that includes ASM too?

Add more tests ensuring compatibility between Spock and GContracts

http://docs.oracle.com/javaee/6/tutorial/doc/gircz.html