I was thinking of how in Java we have to duplicate code between interface classes and implementation classes. I was thinking wouldn't it be nice we we can just have our implementation classes generate the interface code. I was thinking of the following approach.

http://trajano.blogspot.com/2006/03/interface-annotations.html

What do you think? Is it even possible?