Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Ensures and @Requires are not validated. #56

Open
kuechererSWE opened this issue Oct 25, 2022 · 0 comments
Open

@Ensures and @Requires are not validated. #56

kuechererSWE opened this issue Oct 25, 2022 · 0 comments

Comments

@kuechererSWE
Copy link

I'm running your cofoja example Stack and ArrayListStack .
However, the tests fail because the annotations are not evaluated during runtime. The .contract files are along with the bytecode (.class) files in the same directory. During execution I use the JVM switch -javaagent:cofoja.contracts.asm-1.3-20160207.jar

The setting is latest release (cofoja.contracts.asm-1.3-20160207.jar), Eclipse 2022-06 (4.24.0) and JRE.1.8.0_201 and JUnit 5.
The tests are failing since no PostconditionError is thrown. E.g. testEmptyPop (java.lang.IndexOutOfBoundsException insted of PreconditionError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant