@@ -338,7 +338,9 @@ private void doTestAnnotationInfo(AnnotationMetadata metadata) {
338338 allMeta = metadata .getAllAnnotationAttributes (DirectAnnotation .class .getName ()).get ("value" );
339339 assertThat (new HashSet <>(allMeta ), is (equalTo (new HashSet <Object >(Arrays .asList ("direct" , "meta" )))));
340340 allMeta = metadata .getAllAnnotationAttributes (DirectAnnotation .class .getName ()).get ("additional" );
341- assertThat (new HashSet <>(allMeta ), is (equalTo (new HashSet <Object >(Arrays .asList ("direct" )))));
341+ assertThat (new HashSet <>(allMeta ), is (equalTo (new HashSet <Object >(Arrays .asList ("direct" , "" )))));
342+ assertEquals ("" , metadata .getAnnotationAttributes (DirectAnnotation .class .getName ()).get ("additional" ));
343+ assertEquals (0 , ((String []) metadata .getAnnotationAttributes (DirectAnnotation .class .getName ()).get ("additionalArray" )).length );
342344 }
343345 { // perform tests with classValuesAsString = true
344346 AnnotationAttributes specialAttrs = (AnnotationAttributes ) metadata .getAnnotationAttributes (
@@ -425,6 +427,8 @@ public static enum SomeEnum {
425427 String myValue () default "" ;
426428
427429 String additional () default "direct" ;
430+
431+ String [] additionalArray () default "direct" ;
428432 }
429433
430434 @ Target (ElementType .TYPE )
@@ -470,7 +474,7 @@ public enum SubclassEnum {
470474 nestedAnno = @ NestedAnno (value = "na" , anEnum = SomeEnum .LABEL1 , classArray = {String .class }),
471475 nestedAnnoArray = {@ NestedAnno , @ NestedAnno (value = "na1" , anEnum = SomeEnum .LABEL2 , classArray = {Number .class })})
472476 @ SuppressWarnings ({"serial" , "unused" })
473- @ DirectAnnotation ("direct" )
477+ @ DirectAnnotation (value = "direct" , additional = "" , additionalArray = {} )
474478 @ MetaMetaAnnotation
475479 @ EnumSubclasses ({SubclassEnum .FOO , SubclassEnum .BAR })
476480 private static class AnnotatedComponent implements Serializable {
0 commit comments