You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ENJOLRAS Patrick <pa...@thalesgroup.com> on 2019/10/10 13:23:55 UTC

issue ivy 2.5.0 rc1

Hello,

Using Ivy 2.5.0 rc1 and  2.4.0, I had very often encountered a retrieve issue with the exception:  java.lang.UnsupportedOperationException...

I had debug it, it comes from
org.apache.ivy.util.FileUtil.java

184 existingChild.remove(childDest);

To fix it

Line 174 existingChild = new java.util.LinkedList<File>(Arrays.asList(children));



Encapsulate arraysList as linkedList to be able to apply remove(File) function.(ArrayList fixed size cannot apply remove(File ) on it =>unsupportedOperationException)

                If someone could do the modification or tell me how to submit it, it will be great.

Thanks.

Regards

[Thales]
Patrick Enjolras
DIS BPS R&D Engineer
Tel.: 01 55 01 59 61

Gemalto is now part of the Thales Group.
Please note that my new email address is patrick.enjolras@thalesgroup.com<ma...@thalesgroup.com>

THALES
6, rue de la Verrerie 92190 Meudon

www.thalesgroup.com<http://www.thalesgroup.com/>
[http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_linkedin.png]<http://www.linkedin.com/company/thales>
[http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_twitter.png]<https://twitter.com/thalesgroup>
[http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_fb.png]<https://www.facebook.com/thalesgroup>
[http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_youtube.png]<https://www.youtube.com/user/thethalesgroup>




Re: issue ivy 2.5.0 rc1

Posted by Jaikiran Pai <ja...@apache.org>.
Adding to what Maarten noted - the nightly builds are available for
testing here
https://builds.apache.org/job/Ivy/lastSuccessfulBuild/artifact/build/

The plan is to release a newer version of Ivy 2.5.0 soon (one other user
has reported a different issue which I want to review first before
deciding whether or not a fix is needed for that before releasing).

-Jaikiran

On 11/10/19 12:12 AM, Maarten Coene wrote:
> Thanks for the report Patrick,
>
> it seems this issue has already been fixed in git some time ago.
> It should be available in an upcoming release or in a recent nightly build.
>
>
> Maarten
>
>
>
> Op donderdag 10 oktober 2019 20:24:50 CEST schreef ENJOLRAS Patrick <pa...@thalesgroup.com>: 
>
>
>
>
>
>   
>
>
> Hello,
>
>  
>
> Using Ivy 2.5.0 rc1 and  2.4.0, I had very often encountered a retrieve issue with the exception:  java.lang.UnsupportedOperationException…
>
>  
>
> I had debug it, it comes from 
>
> org.apache.ivy.util.FileUtil.java
>
>  
>
> 184 existingChild.remove(childDest);
>
>  
>
> To fix it
>
> Line 174 existingChild = new java.util.LinkedList<File>(Arrays.asList(children));
>
>  
>
> Encapsulate arraysList as linkedList to be able to apply remove(File) function.(ArrayList fixed size cannot apply remove(File ) on it =>unsupportedOperationException)
>
>  
>
>                 If someone could do the modification or tell me how to submit it, it will be great.
>
>  
>
> Thanks.
>
>  
>
> Regards
>
>  
>
>   
>   
>
>   
>   
> Patrick Enjolras
> DIS BPS R&D Engineer 
> Tel.: 01 55 01 59 61
>
> Gemalto is now part of the Thales Group.
> Please note that my new email address is patrick.enjolras@thalesgroup.com
>   
>  
>   
>   
>
> THALES
>
>   
> 6, rue de la Verrerie 92190 Meudon
>
>
>   
>   
> www.thalesgroup.com
>   
>   
>   
>
>     
>
>     
>
>     
>
>   
>
>   
>
>   
>
>
>  
>
>  
>
>  
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: issue ivy 2.5.0 rc1

Posted by Maarten Coene <ma...@yahoo.com.INVALID>.
Thanks for the report Patrick,

it seems this issue has already been fixed in git some time ago.
It should be available in an upcoming release or in a recent nightly build.


Maarten



Op donderdag 10 oktober 2019 20:24:50 CEST schreef ENJOLRAS Patrick <pa...@thalesgroup.com>: 





  


Hello,

 

Using Ivy 2.5.0 rc1 and  2.4.0, I had very often encountered a retrieve issue with the exception:  java.lang.UnsupportedOperationException…

 

I had debug it, it comes from 

org.apache.ivy.util.FileUtil.java

 

184 existingChild.remove(childDest);

 

To fix it

Line 174 existingChild = new java.util.LinkedList<File>(Arrays.asList(children));

 

Encapsulate arraysList as linkedList to be able to apply remove(File) function.(ArrayList fixed size cannot apply remove(File ) on it =>unsupportedOperationException)

 

                If someone could do the modification or tell me how to submit it, it will be great.

 

Thanks.

 

Regards

 

  
  

  
  
Patrick Enjolras
DIS BPS R&D Engineer 
Tel.: 01 55 01 59 61

Gemalto is now part of the Thales Group.
Please note that my new email address is patrick.enjolras@thalesgroup.com
  
 
  
  

THALES

  
6, rue de la Verrerie 92190 Meudon


  
  
www.thalesgroup.com
  
  
  

    

    

    

  

  

  


 

 

 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org