| Summary: | [1.7] Problems in new APIs (TryStatementWithResources, DisjunctiveType) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | jarthana, Olivier_Thomann | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7.1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 340375 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
The problems in TryStatementWithResources should be resolved when that node type gets integrated into TryStatement (see bug 340375). The grammar of TryStatementWithResources is also wrong:
It contains "[ CatchClause ]", but that should be "{ CatchClause }".
(In reply to comment #2) > The grammar of TryStatementWithResources is also wrong: > It contains "[ CatchClause ]", but that should be "{ CatchClause }". [..] means optional. So [ CatchClause ] is right for the TWR statement. You don't need to have catch clauses. I'll fix the remaining issues by merging with the TryStatement. Released for 3.7M7 in BETA_JAVA7 branch. Created attachment 191520 [details]
More fixes
Here's a bunch of additional fixes for the new APIs. The changes in ASTNode are to ensure that nothing needs to be touched again when JLS5 is added.
The changes in ClassInstanceCreation and QualifiedType are just typos that should also be corrected in HEAD.
. Released. Thx for the patch. Created attachment 191525 [details]
Proposed fix
Extracted the part that needs to be released in HEAD.
Released in HEAD. Verified. |