DUBBO-7 BigPerson中类的范型丢失问题
对应case test_total,test_total_Array git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@125 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
parent
51b66f26ee
commit
de82243ea5
|
|
@ -349,7 +349,8 @@ public class PojoUtils {
|
|||
if (method != null) {
|
||||
if (! method.isAccessible())
|
||||
method.setAccessible(true);
|
||||
value = realize(value, method.getParameterTypes()[0], history);
|
||||
Type ptype = method.getGenericParameterTypes()[0];
|
||||
value = realize(value, method.getParameterTypes()[0], ptype, history);
|
||||
try {
|
||||
method.invoke(dest, value);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import java.lang.reflect.Type;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.alibaba.dubbo.common.model.Person;
|
||||
|
|
@ -197,8 +196,6 @@ public class PojoUtilsTest {
|
|||
bigPerson.setInfoProfile(pi);
|
||||
}
|
||||
|
||||
// FIXME
|
||||
@Ignore("Type missing, List<Phone> -> List<Map>")
|
||||
@Test
|
||||
public void test_total() throws Exception {
|
||||
Object generalize = PojoUtils.generalize(bigPerson);
|
||||
|
|
@ -207,8 +204,6 @@ public class PojoUtilsTest {
|
|||
assertEquals(bigPerson, realize);
|
||||
}
|
||||
|
||||
// FIXME
|
||||
@Ignore("Type missing, List<Phone> -> List<Map>")
|
||||
@Test
|
||||
public void test_total_Array() throws Exception {
|
||||
Object[] persons = new Object[] { bigPerson, bigPerson, bigPerson };
|
||||
|
|
|
|||
Loading…
Reference in New Issue