]
George Gastaldi closed ROASTER-64.
----------------------------------
Assignee: Davide Sottara
Fix Version/s: 2.13.3.Final
(was: 2.x Future)
Resolution: Done
Field.setType does not preserve the generic types
-------------------------------------------------
Key: ROASTER-64
URL:
https://issues.jboss.org/browse/ROASTER-64
Project: Roaster
Issue Type: Bug
Components: JDT
Affects Versions: 2.12.0.Final
Reporter: George Gastaldi
Assignee: Davide Sottara
Fix For: 2.13.3.Final
The following test should pass
{code:java}
@Test
public void testFieldType() throws Exception
{
JavaClassSource clazz =
Roaster.create(JavaClassSource.class).setName("MyClass");
String type =
"java.util.Map<ca.uhn.fhir.model.api.ResourceMetadataKeyEnum<T>,java.lang.Object>";
FieldSource<JavaClassSource> field =
clazz.addField().setName("field").setType(type);
Assert.assertEquals(type, field.getType().getQualifiedName());
}
{code}