You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jun Tsai (JIRA)" <de...@tapestry.apache.org> on 2007/04/18 04:25:15 UTC

[jira] Reopened: (TAPESTRY-1410) fail to test GenericsMethodSignatureImpl class.

     [ https://issues.apache.org/jira/browse/TAPESTRY-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Tsai reopened TAPESTRY-1410:
--------------------------------


I think the generic return type is not void.It should be E or Object.



> fail to test GenericsMethodSignatureImpl class.
> -----------------------------------------------
>
>                 Key: TAPESTRY-1410
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1410
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 4.1.2
>         Environment: jdk1.5
>            Reporter: Jun Tsai
>         Assigned To: Jesse Kuhnert
>            Priority: Blocker
>             Fix For: 4.1.2
>
>
> fail to test GenericsMethodSignatureImpl class.
> public class GenericsMethodSignatureImplTest {
> 	public static abstract class BaseTest<T>{
> 		
> 	}
> 	public static abstract class MyTest<T,E>extends BaseTest<T>   {
> 		public abstract E getRelativeObject();
> 		public abstract void setRelativeObject(E e);
> 		
> 	}
> 	
> 	@Test
> 	public void test_generic() {
> 		Class testClass=MyTest.class;
> 		Method[] methods = testClass.getMethods();
> 		for (Method method : methods) {
> 			MethodSignatureImpl msi = new GenericsMethodSignatureImpl(testClass,method);
> 			msi.hashCode();
> 		}
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org