Bug 217513 - [1.5][compiler] SuppressWarnings("hiding") causes UnusedWarningToken
Summary: [1.5][compiler] SuppressWarnings("hiding") causes UnusedWarningToken
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-01 15:58 EST by David Williams CLA
Modified: 2009-08-03 08:53 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2008-02-01 15:58:40 EST
We've recently moved up to 3.4 M4 to compile our WTP code. I know some suppresswarnings stuff was fixed in that version, but we are still seeing this one 

    1. WARNING: UnusedWarningToken

    Unnecessary @SuppressWarnings("hiding")

    MetadataPackage.java :

    682 : @SuppressWarnings("hiding")

But "hiding" should be recognized, right? It's suggested by quick fix! 


Our current, overall compiler arguments are 
compilerArg=-showversion -encoding ISO-8859-1 -warn:-serial,raw,typeHiding,unchecked 

Am I missing something obvious? Or is this a bug? 
Is there a list of the supported suppressable warnings?
Comment 1 Philipe Mulet CLA 2008-02-04 07:59:50 EST
The warning doesn't tell you it is not recognized; it rather tells you it is not necessary (since no occurrence of the warning in your code, e.g. maybe mandated once upon a time, but now irrelevant).

Now, there are still some issues near @SuppressWarnings, see bug 212884.

Can you provide complete steps to reproduce ? Ideally a small standalone testcase would be the best. 

Comment 2 Olivier Thomann CLA 2009-06-26 11:07:27 EDT
Closing as WORKSFORME.
David, please reopen if you have a test case that doesn't behave as expected.
Comment 3 Frederic Fusier CLA 2009-08-03 08:53:54 EDT
Verified for 3.6M1