Bug 174298 - Wrong NAME_PROPERTY child type for AnnotationTypeDeclaration and EnumDeclaration
Summary: Wrong NAME_PROPERTY child type for AnnotationTypeDeclaration and EnumDeclaration
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 08:18 EST by Eric Inman CLA
Modified: 2007-03-20 13:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Inman CLA 2007-02-15 08:18:12 EST
Build ID: M20060629-1905

Steps To Reproduce:
System.out.println(
    AnnotationTypeDeclaration.NAME_PROPERTY.getChildType().
	getSimpleName() + "\n" +
    EnumDeclaration.NAME_PROPERTY.getChildType).
        getSimpleName() + "\n" +
    TypeDeclaration.NAME_PROPERTY.getChildType().
        getSimpleName());

Results:

Name
Name
SimpleName


More information:
For AbstractTypeDeclaration and its subclasses, getName() returns a SimpleName, not a Name; and setName(...) takes a SimpleName.
Comment 1 Olivier Thomann CLA 2007-02-15 11:07:12 EST
Released for 3.3M6.
Added regression test org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0668
Comment 2 David Audel CLA 2007-03-20 13:47:21 EDT
Verified for 3.3 M6 using build I20070320-0010