Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 11b4b3e6c -> 2bcb85a93

Documentation: traits vs default methods: clarify difference (closes #660)


Branch: refs/heads/GROOVY_2_4_X
Commit: 2bcb85a9333736f8d73db9d3e0d105478e9b1c5a
Parents: 11b4b3e
Author: Martin Gansler <>
Authored: Thu Feb 8 08:27:41 2018 +0100
Committer: paulk <>
Committed: Fri Feb 23 20:49:30 2018 +1000

 src/spec/doc/core-traits.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spec/doc/core-traits.adoc b/src/spec/doc/core-traits.adoc
index 5bd17ce..61f66b4 100644
--- a/src/spec/doc/core-traits.adoc
+++ b/src/spec/doc/core-traits.adoc
@@ -562,7 +562,7 @@ 
 In Java 8, interfaces can have default implementations of methods. If a class 
implements an interface and does not provide
 an implementation for a default method, then the implementation from the 
interface is chosen. Traits behave the same but
 with a major difference: the implementation from the trait is *always* used if 
the class declares the trait in its interface
-list *and* that it doesn't provide an implementation.
+list *and* that it doesn't provide an implementation *even* if a super class 
 This feature can be used to compose behaviors in an very precise way, in case 
you want to override the behavior of an
 already implemented method.

Reply via email to