andresteingress / gcontracts

GContracts: Programming by Contract for Groovy
http://gcontracts.org
114 stars 11 forks source link

"Type mismatch" when using in Java #52

Closed WolfgangWo closed 6 years ago

WolfgangWo commented 7 years ago

Hi.

Does GContracts support being used in Java?

I tried successfully to create a Maven Java project and import the GContracts library as a dependency, but the first "@Requires(some boolean expression)" gives me a compile-time error saying,

"Type mismatch: cannot convert from boolean to Class".

Wolfgang

paulk-asert commented 6 years ago

I highly doubt it could be used with Java.

WolfgangWo commented 6 years ago

Thank you -- in the meantime, I thought so anyway.