Bug 83013 - [5.0] TypeDeclaration after AnnotationTypeDeclaration has wrong source range
Summary: [5.0] TypeDeclaration after AnnotationTypeDeclaration has wrong source range
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 14:45 EST by Markus Keller CLA
Modified: 2005-02-16 10:37 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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