Bug 367734 - [compiler] Used suppressWarnings are being reported as unused
Summary: [compiler] Used suppressWarnings are being reported as unused
Status: VERIFIED DUPLICATE of bug 346175
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Satyam Kandula CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 05:15 EST by Satyam Kandula CLA
Modified: 2012-01-24 06:25 EST (History)
1 user (show)

See Also:


Attachments
Test case (6.59 KB, application/octet-stream)
2012-01-03 05:15 EST, Satyam Kandula CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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