MER-C/wiki-java

Patch for /trunk/src/org/wikipedia/Wiki.java

Closed this issue · 2 comments

I extend this class and override initVars() and use setMaxLag() inside the 
method. (because I cannot use "protected" maxlag) It causes StackOverflowError 
since initVars calls setMaxLag and setMaxLag calls initVars infinitely. Perhaps 
let's find other way to update apiUrl.

Original issue reported on code.google.com by octahedr...@gmail.com on 2 Jul 2012 at 11:31

Attachments:

>override initVars() and use setMaxLag() inside the method
The exception is telling you that you shouldn't do that. The recommended way to 
set the maxlag is as follows:

// this is is main(), or wherever the wiki object is created
XYZWiki wiki = new XYZWiki();
wiki.setMaxLag(4);

Original comment by stop.squark on 3 Jul 2012 at 3:43

Closing as 'WontFix', stop.squark suggested the recommended method.

Original comment by alec.b...@gmail.com on 26 Aug 2012 at 8:02

  • Changed state: WontFix