[ 
https://issues.apache.org/jira/browse/IVY-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Quinn updated IVY-1353:
----------------------------

    Description: 
In org.apache.ivy.plugins.circular the IgnoreCircularDependencyStrategy class 
has this constructor:

{code}
private IgnoreCircularDependencyStrategy() {
    super("warn");
}
{code}
Thus is claiming to be the warn strategy and then clobbers the real warn 
strategy when it is registered in 
IvySettings.configureDefaultCircularDependencyStrategies()

I think the fix is to just change the above string to "ignore", so:

{code}
private IgnoreCircularDependencyStrategy() {
    super("ignore");
}
{code}


  was:
In org.apache.ivy.plugins.circular the IgnoreCircularDependencyStrategy class 
has this constructor:
{code}
private IgnoreCircularDependencyStrategy() {
    super("warn");
}
{code}
Thus is claiming to be the warn strategy and then clobbers the real warn 
strategy when it is registered in 
IvySettings.configureDefaultCircularDependencyStrategies()

I think the fix is to just change the above string to "ignore".


    
> It appears that the ignore circular dependency strategy is clobbering the 
> warn strategy
> ---------------------------------------------------------------------------------------
>
>                 Key: IVY-1353
>                 URL: https://issues.apache.org/jira/browse/IVY-1353
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.0-RC1
>            Reporter: Carl Quinn
>            Priority: Critical
>
> In org.apache.ivy.plugins.circular the IgnoreCircularDependencyStrategy class 
> has this constructor:
> {code}
> private IgnoreCircularDependencyStrategy() {
>     super("warn");
> }
> {code}
> Thus is claiming to be the warn strategy and then clobbers the real warn 
> strategy when it is registered in 
> IvySettings.configureDefaultCircularDependencyStrategies()
> I think the fix is to just change the above string to "ignore", so:
> {code}
> private IgnoreCircularDependencyStrategy() {
>     super("ignore");
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to