On 6/1/2011 6:19 PM, Peter Firmstone wrote:
The argument for generics in remote interfaces is to reduce boilerplate
code, the argument against is, it introduces unchecked type casts. (See
earlier discussion)

Is there another way to reduce the boilerplate code, using annotations
perhaps?
...

Could we use annotations to get rid of the "unchecked conversion"
warnings? As I understand it, the compiler generates code that is type
safe even if e.g. a collection contains references to objects of
unexpected classes.

Patricia

Reply via email to