Bug 422337 - [1.8][compiler] Syntax error for illegal type annotation position has severity "Warning"
Summary: [1.8][compiler] Syntax error for illegal type annotation position has severit...
Status: RESOLVED DUPLICATE of bug 420045
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-22 08:40 EST by Markus Keller CLA
Modified: 2013-11-25 03:59 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2013-11-22 08:40:42 EST
"Syntax error, type annotations are illegal here" has severity "Warning":

    Class<?> i= int @Deprecated[] .class; // Warning (expected: Error)
    Class<?> o= Object @Deprecated[] .class; // Error (correct)
Comment 1 Srikanth Sankaran CLA 2013-11-22 08:53:27 EST
This is deliberate, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=420045.

*** This bug has been marked as a duplicate of bug 420045 ***