Bug 79847 - [1.5][annot] Array type cannot have two or more dimensions
Summary: [1.5][annot] Array type cannot have two or more dimensions
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 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 23:30 EST by Olivier Thomann CLA
Modified: 2004-12-14 22:47 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 Olivier Thomann CLA 2004-11-30 23:30:31 EST
Using latest, we should report an error when compiling this code:

@interface I {
    int[][] ids();
}

public class X {

    @I(ids = {{1 , 2}, { 3 }}) public void foo(){
    }
}

The array can only have one dimension.
Comment 1 Philipe Mulet CLA 2004-12-01 06:51:02 EST
Added check for 1-dimensional arrays only.
Added AnnotationTest#test070.
Fixed
Comment 2 Olivier Thomann CLA 2004-12-14 22:47:46 EST
Verified in 200412140800