Bug 219237 - Syntax Error in Annotation Array Parameter not detected
Summary: Syntax Error in Annotation Array Parameter not detected
Status: VERIFIED DUPLICATE of bug 112433
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-16 14:30 EST by Martin Ahrer CLA
Modified: 2008-03-25 12:49 EDT (History)
2 users (show)

See Also:


Attachments
AnnotationBug.java to reproduce problem (305 bytes, application/octet-stream)
2008-02-16 14:31 EST, Martin Ahrer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ahrer CLA 2008-02-16 14:30:05 EST
Build ID: M20071023-1652

Steps To Reproduce:
1. Implement an annotation with parameter of type array
2. Use annotation with parameter value { param-value1, }
3. Compile with Sun compiler which produces  illegal start of expression error

Code to reproduce the problem: Copy this to a java file and compile with eclipse, and external compiler e.g. Sun javac!

@AnnotationWithArrayParameter( { "unchecked", })
public class AnnotationBug {
}

@interface AnnotationWithArrayParameter {
	String[] value() default {};
}

More information:
Comment 1 Martin Ahrer CLA 2008-02-16 14:31:36 EST
Created attachment 89915 [details]
AnnotationBug.java to reproduce problem
Comment 2 Olivier Thomann CLA 2008-02-16 16:54:40 EST

*** This bug has been marked as a duplicate of bug 112433 ***
Comment 3 Kent Johnson CLA 2008-03-25 12:49:10 EDT
Verified for 3.4M6