]
George Gastaldi updated FORGE-27:
---------------------------------
Labels: Starter (was: )
Wrong import if imported class is a nested class
------------------------------------------------
Key: FORGE-27
URL:
https://issues.jboss.org/browse/FORGE-27
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.0.0.Beta2
Reporter: Kevin Pollet
Labels: Starter
Fix For: 1.0.7.Final
For example, if we have the following classes:
{code}
public class A {
public static class B {
}
}
{code}
The import {{com.example.foo.A$B}} is added for the class B instead of
{{com.example.foo.A.B}}. It's because {{AbstractJavaSource#addImport(Class<?>
type)}} uses {{type.getName()}} to create the import, which returns
{{com.example.foo.A$B}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: