Java adds concurrency annotations

Paul D. Anderson paul.d.removethis.anderson at comcast.andthis.net
Thu Sep 11 13:56:59 PDT 2008


The folks at Sun are adding standard annotations to Java 7 for security, concurrency, precondiitons and nullability, among others:

http://today.java.net/pub/a/today/2008/09/11/jsr-305-annotations.html

I wonder how these will play out in the real world. I'm especially interested in the @Immutable annotation since Java's pass-by-reference implementation makes immutability very difficult to implement.

Thanks again, Walter, for the transitive const paradigm. (Although I still contend that you got the keyword wrong: it should be "immutable" -- just like Java!!)

Paul



More information about the Digitalmars-d mailing list