Summary: | call to createAST(..) throws IllegalStateException when parser source is not char[] | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Michael Rennie <Michael_Rennie> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | Olivier_Thomann | ||||
Version: | 3.4 | ||||||
Target Milestone: | 3.5 M1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Michael Rennie
2008-07-28 15:26:22 EDT
This is clearly a bug. There is nothing in the doc that mentions that setSource(char[]) has to be used when using a kind that is not K_COMPILATION_UNIT. Created attachment 108853 [details]
Proposed fix
Released for 3.5M1. Added regression test org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0691 Verified for 3.5M1 using I20080805-1307 |