[
https://issues.jboss.org/browse/FORGE-27?page=com.atlassian.jira.plugin.s...
]
Lincoln Baxter III closed FORGE-27.
-----------------------------------
Assignee: Lincoln Baxter III
Resolution: Done
Turned out this was not a good starter issue ;)
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
Assignee: Lincoln Baxter III
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:
http://www.atlassian.com/software/jira