Why isn't JML implemented as Annotations in Java?
Posted
by devoured elysium
on Stack Overflow
See other posts from Stack Overflow
or by devoured elysium
Published on 2010-03-18T21:02:43Z
Indexed on
2010/03/26
16:33 UTC
Read the original article
Hit count: 347
Contrary to Code Contracts in C#, in JML Code Contracts are just text that's used in the form of comments in the header of a method. Wouldn't it be better to have them exposed as Annotations, then? That way even when compiling the information would persist on the .class's metadata, contrary to comments, that get erased.
Am I missing something?
Thanks
© Stack Overflow or respective owner