Is it possible to have an custom annotation that do the same work as another annotation ?
For example if I write @MyCustomAnnotation like I have write @override !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s definitely no support for inheritance with Annotations. See: Is there something like Annotation Inheritance in java?
So without that, unless some framework chose to provide extensibility around its annotation processing, you would have a lot of trouble achieving such an effect.