Summary: | Deprecation is reported even if there is an empty member declaration prior to the field declaration | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.0 M3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Olivier Thomann
2003-07-28 11:42:12 EDT
The comment pointer needs to be reset when an empty member declaration or an empty type declaration is read. Fixed and released in HEAD. Regression test added. JLS 3 gives no clue whether we are right or wrong in this instance (javac complains). However, note that the use of annotations will align our behavior to javac's since the following source yields a syntax error: @Deprecated ; int i; (no way to annotate an empty declaration). Using JDK 7 javadoc upon the following source does not tag i as deprecated, which tends to prove us right (the javadoc should not be attached to i): /** * @deprecated **/ ; public int i; |