[forge-issues] [JBoss JIRA] (FORGE-807) Java Parser incorrectly resolves some dependent classes to java.lang.xxx when resolving imports for an Entity
Greg Steel (JIRA)
jira-events at lists.jboss.org
Mon Mar 4 20:36:56 EST 2013
Greg Steel created FORGE-807:
--------------------------------
Summary: Java Parser incorrectly resolves some dependent classes to java.lang.xxx when resolving imports for an Entity
Key: FORGE-807
URL: https://issues.jboss.org/browse/FORGE-807
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.2.1.Final
Reporter: Greg Steel
Assignee: Greg Steel
Priority: Minor
Fix For: 1.2.2.Final
When generating imports in a Backing Bean for a dependent class, the java parser looks for imports in the Entity bean. When the dependent class is in the local package there may be no explicit import, so org.jboss.forge.parser.java.util.Types.isJavaLang looks for matches between the classname and the set of java.lang classes.
This is fine, but it currently looks for anything ending with a java.lang classname and decides they are a java.lang class, so for example AssetClass would be deemed a java.lang class and incorrectly imported as java.lang.AssetClass.
The decision should be made on an exact match to a java.lang class, it doesn't sense that anything that is not an exact match should be deemed a java.lang class.
--
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
More information about the forge-issues
mailing list