Github user graemerocher commented on a diff in the pull request:
https://github.com/apache/groovy/pull/544#discussion_r117614868
--- Diff: src/main/org/codehaus/groovy/transform/trait/Traits.java ---
@@ -355,19 +355,19 @@ static String getSuperTraitMethodName(ClassNode
trait, String method) {
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
- public static @interface Implemented {}
+ public @interface Implemented {}
/**
* Internal annotation used to indicate that a method is a bridge
method to a trait
* default implementation.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
- public static @interface TraitBridge {
--- End diff --
This is a breaking change, some libraries like GORM needs to inspect this
information in order to know whether a property or fields i provided by a
trait. See
https://github.com/grails/grails-data-mapping/blob/master/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/reflect/FieldEntityAccess.java#L227
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---