Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38472

Re: Checked casting with Generics

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Checked casting with Generics
Date Wed, 4 Jul 2018 17:37:46 -0400
Organization A noiseless patient Spider
Lines 15
Message-ID <phjenc$83o$1@dont-email.me> (permalink)
References <phj8qt$hpp$1@news.albasani.net> <phjdqv$2ve$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Wed, 4 Jul 2018 21:37:48 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="4593a69fbf2465e95bae4ca77e8c5b0e"; logging-data="8312"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DskQhq8QtFd/Za7vDKEz0"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
Cancel-Lock sha1:8ZAtctSGCkzGM8uxIiZNxqOFERA=
In-Reply-To <phjdqv$2ve$1@dont-email.me>
Content-Language en-US
Xref csiph.com comp.lang.java.programmer:38472

Show key headers only | View raw


On 7/4/2018 5:22 PM, Eric Sosman wrote:
> [...[
>      Unless something else turns up, the best I can suggest is to add
> `@SuppressWarning("unchecked")' and an extensive comment ...

     `@SuppressWarnings("unchecked")', of course (sorry)!
                      ^

     Also, I notice that javax.mail's public API wasn't generified until
version 1.6, which seems to have come out about one year ago.  If your
version is older than that it probably doesn't grok generics at all.

-- 
esosman@comcast-dot-net.invalid
Nine hundred thirty-one days to go.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Checked casting with Generics Martin Gregorie <martin@mydomain.invalid> - 2018-07-04 19:57 +0000
  Re: Checked casting with Generics Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-07-04 17:22 -0400
    Re: Checked casting with Generics Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-07-04 17:37 -0400
      Re: Checked casting with Generics Martin Gregorie <martin@mydomain.invalid> - 2018-07-04 23:03 +0000
      Re: Checked casting with Generics Martin Gregorie <martin@mydomain.invalid> - 2018-07-05 15:38 +0000
    Re: Checked casting with Generics Martin Gregorie <martin@mydomain.invalid> - 2018-07-04 22:56 +0000

csiph-web