Bug 217513

Summary: [1.5][compiler] SuppressWarnings("hiding") causes UnusedWarningToken
Product: [Eclipse Project] JDT Reporter: David Williams <david_williams>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: david_williams, gerry.kessler, Olivier_Thomann, philippe_mulet
Version: 3.4   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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