Summary: | ICompilationUnit.createType failing with unexpected exception | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jerome Lanneluc <jerome_lanneluc> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.4 | ||
Target Milestone: | 3.5 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Jerome Lanneluc
2008-08-28 07:04:32 EDT
Released for 3.5M2. Updated existing test. -1 on updating the test. The intent of the test (as explained in its Javadoc) is to ensure that a type can be created using createType(). The problem is that the cu's project has a 1.3 source level. The test should have been updated to ensure that the source level is 1.5 when testing the creation of an annotation type. And a new test should be written to ensure that this bug is fixed. The old test was boggus. So updating it to reflect the right behavior was not wrong. I can add a new test to make sure that the 1.5 case is working. (In reply to comment #3) > The old test was boggus. So updating it to reflect the right behavior was not > wrong. Then you should have updated the test's Javadoc as well. > I can add a new test to make sure that the 1.5 case is working. Please do so. Done. Verified for 3.5M2 using I20080914-2000 |