MER-C/wiki-java

getPageInfo: result array not in same order as input array

Closed this issue · 1 comments

It appears what goes into the MW API doesn't necessarily come out in the same 
order. Code to reproduce:

String[] nds = enWiki.getCategoryMembers("Category:Nintendo DS games");
String[] nds2 = new String[30];
System.arraycopy(nds, 0, nds2, 0, 30);
HashMap[] a = enWiki.getPageInfo(nds2);

We have:
nds2[0] == "List of Nintendo DS games"
a[0].get("displaytitle") == <i>100 Classic Book Collection</i>

This needs a better way of accessing the output. I don't have time to do this 
now.

Original issue reported on code.google.com by stop.squark on 21 Oct 2013 at 12:40

This issue was closed by revision r159.

Original comment by stop.squark on 28 Oct 2013 at 1:00

  • Changed state: Fixed