Bug 339870

Summary: [1.7] Bad list of subclasses in Statement AST node
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, satyam.kandula
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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