You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org> on 2007/03/25 05:33:32 UTC
[jira] Resolved: (TAPESTRY-1374) GenericsMethodSignatureImpl throw
exception!
[ https://issues.apache.org/jira/browse/TAPESTRY-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert resolved TAPESTRY-1374.
-------------------------------------
Resolution: Fixed
Assignee: Jesse Kuhnert
Fixed.
> 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
> Assigned To: Jesse Kuhnert
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org