Summary: | ast: IllegalArgumentException on AST creation | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2002-03-12 06:04:55 EST
I could not reproduce it in latest. Here is my test case. Tell me if you think this is close enough from your test: <source> package test0304; interface Test { public void foo(int arg); } </source> I will try again with your test case, but I think this is an old problem. Forgot my previous note. I reproduce it. I did the initial parsing with: AST.parseCompilationUnit(source, true) instead of AST.parseCompilationUnit(source, false). Big difference! I am looking at it. The bug comes from the fact that the interface method is not tagged as abstract. Therefore I am trying to retrieve the position of the closing brace. And of course I don't find any. When I try to set the source range with invalid positions, I got the exception. Fixed and released in HEAD. Fixed. |