Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 385819

Summary: [package-info] Inconsistent support for SuppressWarnings in package-info
Product: [Eclipse Project] JDT Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, srikanth_sankaran
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Sebastian Zarnekow CLA 2012-07-24 03:46:47 EDT
In the following package-info:
==
@SuppressWarnings("all")
package zonk;
==

I'd expect an error marker on the SuppressWarnings annotation since it is defined as @Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE})

Please note that content-assist correctly refuses to suggest the annotation. Also not that it is not possible to navigate to the declaration of @SuppressWarnings by means of F3 / Open Declaration (Message 'Current text selection cannot be opened in an editor' is displayed in the status bar).

Especially interesting is the fact that @SuppressWarnings is actually applied to all classes in the package. Something is inconsistent here.
Comment 1 Srikanth Sankaran CLA 2012-07-24 04:15:48 EDT
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=382960#c3
Comment 2 Ayushman Jain CLA 2012-07-25 13:45:26 EDT
Keeping this bug for content assist and code select issue. The others will be resolved in bug 382960
Comment 3 Eclipse Genie CLA 2020-02-08 12:15:28 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.