-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Keith Donald opened SPR-8394 and commented
The following test illustrates the problem:
@Test
@Ignore
public void fieldMap() throws Exception {
// typeIndex handling not currently supported by fields
TypeDescriptor desc = new TypeDescriptor(getClass().getField("field"));
assertEquals(Integer.class, desc.getMapKeyTypeDescriptor().getElementType());
assertEquals(Long.class, desc.getMapValueTypeDescriptor().getElementType());
}
public Map<List<Integer>, List<Long>> field;
junit.framework.AssertionFailedError: expected:<class java.lang.Integer> but was:<class java.lang.Long>
at junit.framework.Assert.fail(Assert.java:47)
GenericCollectionResolver needs to be enhanced to provide support for this with Fields as its done with MethodParameters.
No further details from SPR-8394
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug