[
https://issues.apache.org/jira/browse/TAPESTRY-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Kuhnert updated TAPESTRY-1374:
------------------------------------
Fix Version/s: 4.1.2
> GenericsMethodSignatureImpl throw exception!
> --------------------------------------------
>
> Key: TAPESTRY-1374
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1374
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Reporter: Jun Tsai
> Priority: Blocker
> Fix For: 4.1.2
>
>
> public class GenericTest {
> @Test
> public void test_find_type() {
> Class clazz=TestGeneric.class;
> Method[] ms = clazz.getMethods();
> for (Method m : ms) {
> System.out.println(m.getName());
> new GenericsMethodSignatureImpl(
> clazz, m);
> }
> }
> public class TestGeneric<T> extends BaseGeneric<T>{
> }
> public class BaseGeneric<T> {
> public IPage doDeleteEntityAction(T entity) {
> return null;
> }
> }
> }
> throw:
> java.lang.ClassCastException:
> sun.reflect.generics.reflectiveObjects.TypeVariableImpl
> at
> org.apache.tapestry.enhance.GenericsMethodSignatureImpl.findType(GenericsMethodSignatureImpl.java:73)
> at
> org.apache.tapestry.enhance.GenericsMethodSignatureImpl.findParameterTypes(GenericsMethodSignatureImpl.java:98)
> at
> org.apache.tapestry.enhance.GenericsMethodSignatureImpl.<init>(GenericsMethodSignatureImpl.java:32)
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]