[JBoss JIRA] (FORGE-808) Design the next-generation scaffold addon
by George Gastaldi (JIRA)
George Gastaldi created FORGE-808:
-------------------------------------
Summary: Design the next-generation scaffold addon
Key: FORGE-808
URL: https://issues.jboss.org/browse/FORGE-808
Project: Forge
Issue Type: Enhancement
Components: Scaffold
Reporter: George Gastaldi
Fix For: 2.0.0.Final
This issue must be used to discuss about the next-generation scaffold addon. Use this as an umbrella issue and add your comments and/or subtasks.
--
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
11 years, 9 months
[JBoss JIRA] (FORGE-807) Java Parser incorrectly resolves some dependent classes to java.lang.xxx when resolving imports for an Entity
by Greg Steel (JIRA)
[ https://issues.jboss.org/browse/FORGE-807?page=com.atlassian.jira.plugin.... ]
Greg Steel updated FORGE-807:
-----------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/forge/core/pull/295
> 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
11 years, 9 months
[JBoss JIRA] (FORGE-807) Java Parser incorrectly resolves some dependent classes to java.lang.xxx when resolving imports for an Entity
by Greg Steel (JIRA)
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
11 years, 9 months