Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman 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: References: 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: Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:38472 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.