Bug 83013

Summary: [5.0] TypeDeclaration after AnnotationTypeDeclaration has wrong source range
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-01-17 14:45:05 EST
I20050112-1200

TypeDeclaration after AnnotationTypeDeclaration has wrong source range.
The declaration of class 'Client' starts just before '@A("Void");'.
Expected: just before '@Main'.

@interface A {
    String value() default "";
}

@interface Main {
   A child() default @A("Void");
}

@Main(child=@A(""))
@A
class Client {
}
Comment 1 Olivier Thomann CLA 2005-01-17 15:23:35 EST
I am working on it.
Comment 2 Olivier Thomann CLA 2005-01-17 15:51:05 EST
This is a bug in the parser. The modifiersSourceStart is not right.
Comment 3 Olivier Thomann CLA 2005-01-17 17:19:01 EST
Fixed and released in HEAD.
Regression test added in ASTConverter15Test.test0107
Comment 4 David Audel CLA 2005-02-16 10:37:08 EST
Verified in I20050215-2300