@Throws has no effect when the target is a property
问题 While taking a look at this question, I noticed that applying @Throws to a get or set use-site has no effect. Additionally, the only valid targets for @Throws are AnnotationTarget.FUNCTION , AnnotationTarget.PROPERTY_GETTER , AnnotationTarget.PROPERTY_SETTER , and AnnotationTarget.CONSTRUCTOR . Other annotations, such as the JPA annotations and Deprecated work fine and are properly applied to the method! This is strange behavior. To demonstrate, I created a simple abstract class in Java, with