Summary: | IllegalArgumentException in ASTNode.setSourceRange | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | Tod_Creasey |
Version: | 2.0 | ||
Target Milestone: | 2.0 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Martin Aeschlimann
2002-05-02 04:26:59 EDT
The bodyEnd field of the AbstractMethodDeclaration doQuery was not set properly. Fixed and released in HEAD. In your example, the source end of the method setX and the source end of the type A are the same due to the missing brace. Now this doesn't fail anymore, but you cannot surround 'z' with try/catch. It reports that the selection doesn't cover a set of statements. *** Bug 15107 has been marked as a duplicate of this bug. *** sure, of course. this was just an example that created an AST that crashes. |