[JBoss JIRA] (FORGE-1322) Checks for versioned facet installation are insufficient
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-1322?page=com.atlassian.jira.plugin... ]
Vineet Reynolds commented on FORGE-1322:
----------------------------------------
This affects the facet setup wizards since the facets are installed just once with this behavior. When the user attempts to install a different version of the facet, the older version is retained since the facet is detected to be installed.
> Checks for versioned facet installation are insufficient
> --------------------------------------------------------
>
> Key: FORGE-1322
> URL: https://issues.jboss.org/browse/FORGE-1322
> Project: Forge
> Issue Type: Bug
> Components: Java EE APIs
> Affects Versions: 2.0.0.Beta3
> Reporter: Vineet Reynolds
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The current checks in the {{isInstalled}} method of most versioned Facets include the following line:
> {noformat}
> return super.isInstalled() && getConfigFile().exists();
> {noformat}
> This is insufficient since the config file could exist but could contain a different version. The facet should not be activated in such a case.
--
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