MooseMonticelloHTTPImporter onURL: - infinite recursion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MooseMonticelloHTTPImporter onURL: - infinite recursion

Ciprian Teodorov-2
Hi all,

There is a small bug in the MooseMonticelloHTTPImporter>>#onURL: method. This method recursively calls itself. 

onURL: anHTTPURL
  "
  (self new onURL: 'http://www.squeaksource.com/PersonalSetting') importFileNamed: 'PersonalSetting-simon_denier.16.mcz' 
  "
  ^ (self onURL: anHTTPURL) import

The fix would be to change it to something like: 

onURL: anHTTPURL
     ^self new onURL: anHTTPURL; import

--
PhDc Ciprian TEODOROV
Lab-STICC/AS CNRS UMR 3192
University of Brest

phone: (+33)(0) 6 08 54 73 48

mail: [hidden email]
www.teodorov.ro


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: MooseMonticelloHTTPImporter onURL: - infinite recursion

Ciprian Teodorov-2
submitted a fix for this: Moose-MonticelloImporter-cipt.21.mcz

On Tue, Oct 25, 2011 at 12:13 AM, Ciprian Teodorov <[hidden email]> wrote:
Hi all,

There is a small bug in the MooseMonticelloHTTPImporter>>#onURL: method. This method recursively calls itself. 

onURL: anHTTPURL
  "
  (self new onURL: 'http://www.squeaksource.com/PersonalSetting') importFileNamed: 'PersonalSetting-simon_denier.16.mcz' 
  "
  ^ (self onURL: anHTTPURL) import

The fix would be to change it to something like: 

onURL: anHTTPURL
     ^self new onURL: anHTTPURL; import

--
PhDc Ciprian TEODOROV
Lab-STICC/AS CNRS UMR 3192
University of Brest

phone: (+33)(0) 6 08 54 73 48

mail: [hidden email]
www.teodorov.ro




--
PhDc Ciprian TEODOROV
Lab-STICC/AS CNRS UMR 3192
University of Brest

phone: (+33)(0) 6 08 54 73 48

mail: [hidden email]
www.teodorov.ro


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev