Summary: | Exceptions in ASTRewrite | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | markus.kell.r, Olivier_Thomann, srikanth_sankaran | ||||
Version: | 3.5 | ||||||
Target Milestone: | 3.5 M7 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Dani Megert
2009-04-17 11:06:21 EDT
Hint: There's a syntax error ("throws" instead of "throw"), but the ASTRewriteAnalyzer still assumes that the recovered node contains the expected tokens. I guess we need something like the fix for bug 152228 wherever the analyzer is looking for specific tokens. Created attachment 133308 [details]
Proposed patch
The bug occurs because the scanner used by ASTRewriteAnalyzer doesn not known tokens modified by statements recovery.
With this patch a RecoveryScanner will be used when some tokens have been recovered.
Released for 3.5M7 Tests added ASTRewritingWithStatementsRecoveryTest#testBug272711_01() -> testBug272711_03() Verified for 3.5M7 using I20090428-0100 |