< prev index next >

test/jdk/java/lang/annotation/TestConstructorParameterAnnotations.java

Print this page

        

*** 127,177 **** public NestedClass0() {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(value=1)]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=1)"}) public class NestedClass1 { public NestedClass1(@MarkerAnnotation(1) int parameter) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(value=2)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=2)", "null"}) public class NestedClass2 { public NestedClass2(@MarkerAnnotation(2) int parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(value=3)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=3)", "null"}) public class NestedClass3 { public <P> NestedClass3(@MarkerAnnotation(3) P parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(value=4)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=4)", "null"}) public class NestedClass4 { public <P, Q> NestedClass4(@MarkerAnnotation(4) P parameter1, Q parameter2) {} } --- 127,177 ---- public NestedClass0() {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(1)]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(1)"}) public class NestedClass1 { public NestedClass1(@MarkerAnnotation(1) int parameter) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(2)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(2)", "null"}) public class NestedClass2 { public NestedClass2(@MarkerAnnotation(2) int parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(3)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(3)", "null"}) public class NestedClass3 { public <P> NestedClass3(@MarkerAnnotation(3) P parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( "[[], " + ! "[@TestConstructorParameterAnnotations$MarkerAnnotation(4)], " + "[]]") @ExpectedParameterAnnotations({ "null", ! "@TestConstructorParameterAnnotations$MarkerAnnotation(4)", "null"}) public class NestedClass4 { public <P, Q> NestedClass4(@MarkerAnnotation(4) P parameter1, Q parameter2) {} }
*** 181,224 **** public static class StaticNestedClass0 { public StaticNestedClass0() {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(value=1)]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=1)"}) public static class StaticNestedClass1 { public StaticNestedClass1(@MarkerAnnotation(1) int parameter) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(value=2)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=2)", "null"}) public static class StaticNestedClass2 { public StaticNestedClass2(@MarkerAnnotation(2) int parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(value=3)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=3)", "null"}) public static class StaticNestedClass3 { public <P> StaticNestedClass3(@MarkerAnnotation(3) P parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(value=4)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(value=4)", "null"}) public static class StaticNestedClass4 { public <P, Q> StaticNestedClass4(@MarkerAnnotation(4) P parameter1, Q parameter2) {} } --- 181,224 ---- public static class StaticNestedClass0 { public StaticNestedClass0() {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(1)]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(1)"}) public static class StaticNestedClass1 { public StaticNestedClass1(@MarkerAnnotation(1) int parameter) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(2)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(2)", "null"}) public static class StaticNestedClass2 { public StaticNestedClass2(@MarkerAnnotation(2) int parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(3)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(3)", "null"}) public static class StaticNestedClass3 { public <P> StaticNestedClass3(@MarkerAnnotation(3) P parameter1, int parameter2) {} } @ExpectedGetParameterAnnotations( ! "[[@TestConstructorParameterAnnotations$MarkerAnnotation(4)], " + "[]]") @ExpectedParameterAnnotations({ ! "@TestConstructorParameterAnnotations$MarkerAnnotation(4)", "null"}) public static class StaticNestedClass4 { public <P, Q> StaticNestedClass4(@MarkerAnnotation(4) P parameter1, Q parameter2) {} }
< prev index next >