[forge-issues] [JBoss JIRA] (FORGE-27) Wrong import if imported class is a nested class
Lincoln Baxter III (JIRA)
jira-events at lists.jboss.org
Wed Aug 22 13:06:15 EDT 2012
[ https://issues.jboss.org/browse/FORGE-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lincoln Baxter III updated FORGE-27:
------------------------------------
Fix Version/s: 1.0.7.Final
> 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
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list