Message about missing or wrong retention policy of a marker annotation is misleading ------------------------------------------------------------------------------------
Key: TAP5-1014 URL: https://issues.apache.org/jira/browse/TAP5-1014 Project: Tapestry 5 Issue Type: Improvement Components: tapestry-ioc Affects Versions: 5.1.0.5 Reporter: Igor Drobiazko Priority: Minor Using another renetion policy policy than RUNTIME for a marker annotation leads to the following exception Caused by: java.lang.IllegalArgumentException: Marker annotation class org.example.Blue is not valid because it is not visible at runtime. Add a @RetentionPolicy(RUNTIME) to the class. at org.apache.tapestry5.ioc.internal.util.InternalUtils.validateMarkerAnnotation(InternalUtils.java:698) at org.apache.tapestry5.ioc.internal.util.InternalUtils.validateMarkerAnnotations(InternalUtils.java:703) at org.apache.tapestry5.ioc.internal.ServiceBinderImpl.withMarker(ServiceBinderImpl.java:292) A proper mesage is: Add a @Retention(RetentionPolicy.RUNTIME) to the class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.