river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patricia Shanahan <p...@acm.org>
Subject Re: correctness, generics, and spaces
Date Thu, 02 Jun 2011 01:51:40 GMT
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


Mime
View raw message