[forge-dev] [JBoss JIRA] Created: (SEAMFORGE-189) Field#isType(Class<?> type) method should check if class is part of java.lang package
Kevin Pollet (JIRA)
jira-events at lists.jboss.org
Mon May 23 16:54:00 EDT 2011
Field#isType(Class<?> type) method should check if class is part of java.lang package
-------------------------------------------------------------------------------------
Key: SEAMFORGE-189
URL: https://issues.jboss.org/browse/SEAMFORGE-189
Project: Seam Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.0.0.Alpha3
Reporter: Kevin Pollet
Priority: Critical
Currently, {{Field#isType(Class<?> type)}} method checks if there is an import for the given type (only in some case). If the given class represents a wrapper type like {{Boolean}} this will cause the following test to fail (the java.lang import is not needed):
{code}
JavaClass fooClass = create(JavaClass.class)
.setPackage("com.test")
.setName("Foo");
Field<JavaClass> property = fooClass.addField("private Boolean bar;");
assertTrue(property.isType(Boolean.class));
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-dev
mailing list