🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #184

Re: warning: [unchecked] unchecked conversion

#184
From: Gillmer J. Derge [TeamB]
Date: Mon, 10 Apr 2006 14:33
23 lines
1915 bytes
Paul Furbacher [TeamB] wrote:
> In that case, one alternative would be to add the annotation
> 
>   @SuppressWarning("unchecked")
> 
> to stifle the warning.

This doesn't work in the JDK provided with JB2006.  You would need to 
upgrade to the latest JDK1.5 Update 6 in order to get support for this. 
  You would also probably need to enable "project javac" as the Java 
compiler for the project.

I haven't actually tested that this works in update 6, but the Sun Bug 
Parade implies that it should.

Fun hypothetical question to pass some time with today: WTF was the 
point of implementing a SuppressWarnings annotation but not actually 
doing anything with it in the compiler until 6 updates down the line? 
AFAIK Eclipse has supported it for a long while.  Was this some kind of 
backdoor nod to Eclipse from Sun?

-- 
Gillmer J. Derge [TeamB]
Technical Details
Message-ID: <443a6cc0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4432880a$1@newsgroups.borland.com> <44329514$1@newsgroups.borland.com> <4432a27b$1@newsgroups.borland.com> <44333d8d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,f529280ba60199cd
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 10 Apr 2006 10:33:36 -0400
From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: warning: [unchecked] unchecked conversion
References: <4432880a$1@newsgroups.borland.com> <44329514$1@newsgroups.borland.com> <4432a27b$1@newsgroups.borland.com> <44333d8d$1@newsgroups.borland.com>
In-Reply-To: <44333d8d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.149.56.207
Message-ID: <443a6cc0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144679616 24.149.56.207 (10 Apr 2006 07:33:36 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail