You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2014/06/28 22:29:43 UTC

git commit: Added test for TAP5-1480.

Repository: tapestry-5
Updated Branches:
  refs/heads/master af6518b97 -> 261c41666


Added test for TAP5-1480.

Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/261c4166
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/261c4166
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/261c4166

Branch: refs/heads/master
Commit: 261c41666256f5b1e31847d449c5f571fb075767
Parents: af6518b
Author: Thiago H. de Paula Figueiredo <th...@apache.org>
Authored: Sat Jun 28 17:29:27 2014 -0300
Committer: Thiago H. de Paula Figueiredo <th...@apache.org>
Committed: Sat Jun 28 17:29:27 2014 -0300

----------------------------------------------------------------------
 .../ioc/specs/PropertyAccessImplSpec.groovy     | 21 +++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/261c4166/tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy b/tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy
index 5e62147..850ed44 100644
--- a/tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy
+++ b/tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy
@@ -769,8 +769,27 @@ class PropertyAccessImplSpec extends Specification {
     pa.isRead();
     pa.isUpdate();
   }
+  
+  public static interface Entity<T extends Serializable>
+  { 
+    T getId(); 
+  }
+  
+  public static interface NamedEntity extends Entity<Long> { 
+    String getName(); 
+  }
 
-
+  // TAP5-1480
+  def "exception when creating property conduits for generic interfaces"() {
+    when:
+    def paId = getPropertyAdapter Entity, "id";
+    def paName = getPropertyAdapter NamedEntity, "name";
+    
+    then:
+    paId != null
+    paName != null
+  }
+  
   def getPropertyAdapter(clazz, name) {
     access.getAdapter(clazz).getPropertyAdapter(name)
   }