172 "import java.util.HashMap; \n" + |
172 "import java.util.HashMap; \n" + |
173 "import java.util.Map; \n\n"); |
173 "import java.util.Map; \n\n"); |
174 |
174 |
175 String sourceBase = new String("@Retention("+retentn+")\n" + |
175 String sourceBase = new String("@Retention("+retentn+")\n" + |
176 "@Target({TYPE_USE,_OTHER_})\n" + |
176 "@Target({TYPE_USE,_OTHER_})\n" + |
177 "@ContainedBy( AC.class )\n" + |
177 "@Repeatable( AC.class )\n" + |
178 "@interface A { }\n\n" + |
178 "@interface A { }\n\n" + |
179 |
179 |
180 "@Retention("+retentn+")\n" + |
180 "@Retention("+retentn+")\n" + |
181 "@Target({TYPE_USE,_OTHER_})\n" + |
181 "@Target({TYPE_USE,_OTHER_})\n" + |
182 "@ContainerFor(A.class)\n" + |
|
183 "@interface AC { A[] value(); }\n\n" + |
182 "@interface AC { A[] value(); }\n\n" + |
184 |
183 |
185 "@Retention("+retentn+")\n" + |
184 "@Retention("+retentn+")\n" + |
186 "@Target({TYPE_USE,_OTHER_})\n" + |
185 "@Target({TYPE_USE,_OTHER_})\n" + |
187 "@ContainedBy( BC.class )\n" + |
186 "@Repeatable( BC.class )\n" + |
188 "@interface B { }\n\n" + |
187 "@interface B { }\n\n" + |
189 |
188 |
190 "@Retention("+retentn+")\n" + |
189 "@Retention("+retentn+")\n" + |
191 "@Target({TYPE_USE,_OTHER_})\n" + |
190 "@Target({TYPE_USE,_OTHER_})\n" + |
192 "@ContainerFor(B.class)\n" + |
|
193 "@interface BC { B[] value(); } \n\n" + |
191 "@interface BC { B[] value(); } \n\n" + |
194 |
192 |
195 "@Retention("+retentn+")\n" + |
193 "@Retention("+retentn+")\n" + |
196 "@Target({TYPE_PARAMETER,_OTHER_})\n" + |
194 "@Target({TYPE_PARAMETER,_OTHER_})\n" + |
197 "@interface C { }\n\n" + |
195 "@interface C { }\n\n" + |
198 |
196 |
199 "@Retention("+retentn+")\n" + |
197 "@Retention("+retentn+")\n" + |
200 "@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n" + |
198 "@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n" + |
201 "@ContainedBy(DC.class)\n" + |
199 "@Repeatable(DC.class)\n" + |
202 "@interface D { }\n\n" + |
200 "@interface D { }\n\n" + |
203 |
201 |
204 "@Retention("+retentn+")\n" + |
202 "@Retention("+retentn+")\n" + |
205 "@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n" + |
203 "@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n" + |
206 "@ContainerFor(D.class) \n" + |
|
207 "@interface DC { D[] value(); }\n\n"); |
204 "@interface DC { D[] value(); }\n\n"); |
208 |
205 |
209 // Test case sources with sample generated source. |
206 // Test case sources with sample generated source. |
210 switch(src) { |
207 switch(src) { |
211 case 1: // repeating type annotations at class level |
208 case 1: // repeating type annotations at class level |