Bug 339870 - [1.7] Bad list of subclasses in Statement AST node
Summary: [1.7] Bad list of subclasses in Statement AST node
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 07:27 EDT by Markus Keller CLA
Modified: 2011-04-25 05:46 EDT (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 2011-03-14 07:27:36 EDT
BETA_JAVA7

The Javadoc of Statement now says:

 * For JLS3, an enhanced for node type was added:
 * <pre>
 * Statement:
 *    {@link AssertStatement},
[..]
 *    {@link TryStatement},
 *    {@link TryStatementWithResources},
 *    {@link TypeDeclarationStatement},
[..]

That's wrong. I suggest you don't repeat the whole list again and again, but just list the JLS2 types and then add this:

 * For JLS3:
 * <pre>
 * Statement:
 *    <i>&lt;JLS2 statements&gt;...</i>,
 *    {@link EnhancedForStatement}
 * </pre>
 * For JLS4:
 * <pre>
 * Statement:
 *    <i>&lt;JLS3 statements...&gt;</i>,
 *    {@link TryStatementWithResources}
 * </pre>
Comment 1 Olivier Thomann CLA 2011-03-14 10:45:05 EDT
I agree. This should be cleaned.
Comment 2 Olivier Thomann CLA 2011-03-14 22:11:15 EDT
Released for 3.7M7.
I adapted the fix for the HEAD stream as well.
Comment 3 Satyam Kandula CLA 2011-04-25 05:46:07 EDT
Verified for 3.7M7 using build I20110421-1800