Bug 367734

Summary: [compiler] Used suppressWarnings are being reported as unused
Product: [Eclipse Project] JDT Reporter: Satyam Kandula <satyam.kandula>
Component: CoreAssignee: Satyam Kandula <satyam.kandula>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 3.8   
Target Milestone: 3.8 M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Test case none

Description Satyam Kandula CLA 2012-01-03 05:15:31 EST
Created attachment 208927 [details]
Test case

If they are more than 100 'errors' that are getting suppressed using @SuppressWarnings, the latter @SuppressWarnings are getting flagged as unused.
Steps to reproduce:
 - Use the attached java source
 - Make the following error/warning settings
    1. 'Value of parameter is not used' to Error
    2. Check 'Enable @SuppressWarnings' annotations
    3. 'Unused @SuppressWarnings' token' to Warning
    4. Check 'Suppress optionall errors with `@SuppressWarnings'
    5. Check 'Treat above errors like fatal compiler errors'
Comment 1 Satyam Kandula CLA 2012-01-03 05:19:55 EST
oops .. Submitted this early :(. Fix for bug 346175 fixes this problem.
Comment 2 Satyam Kandula CLA 2012-01-03 05:20:58 EST
This problem gets fixed with the fix for 346175. Hence marking as duplicate.

*** This bug has been marked as a duplicate of bug 346175 ***
Comment 3 Stephan Herrmann CLA 2012-01-24 06:25:12 EST
Verified for 3.8 M5 using build I20120123-1300