Allopen, Noarg: Support transitive meta-annotations

This commit is contained in:
Yan Zhulanow
2016-12-19 15:15:13 +03:00
committed by Yan Zhulanow
parent 82dbba838a
commit f8edf51c1b
3 changed files with 46 additions and 5 deletions
@@ -3,11 +3,20 @@ annotation class AllOpen
@AllOpen
annotation class MyComponent
@MyComponent // Double-transitive annotations is not supported
@MyComponent // Double-transitive annotations is supported
annotation class OtherComponent
@OtherComponent
annotation class AnotherComponent
@java.lang.annotation.Documented
annotation class Documented
class TestWithoutAnnotations_ShouldBeFinal
@Documented
class ClassWithDocumented
@AllOpen
class TestAllOpen_ShouldBeOpen
@@ -15,7 +24,10 @@ class TestAllOpen_ShouldBeOpen
class TestMyComponent_ShouldBeOpen
@OtherComponent
class TestOtherComponent_ShouldBeFinal
class TestOtherComponent_ShouldBeOpen
@AnotherComponent
class TestAnotherComponent_ShouldBeOpen
@MyComponent
abstract class MyComponentBase