Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38474
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Checked casting with Generics |
| Date | 2018-07-04 23:03 +0000 |
| Organization | albasani.net |
| Message-ID | <phjjo1$jak$2@news.albasani.net> (permalink) |
| References | <phj8qt$hpp$1@news.albasani.net> <phjdqv$2ve$1@dont-email.me> <phjenc$83o$1@dont-email.me> |
On Wed, 04 Jul 2018 17:37:46 -0400, Eric Sosman wrote:
> 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.
A quick scan of the Javadocs makes that likely: I didn't spot any
generics in places where I'd expect them, e.g. the Folder class is
subclassed rather generified. and the same applied to in interface I
spotted.
--
Martin | martin at
Gregorie | gregorie dot org
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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