Bug in String class compareTo

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, 99jonathan, imaqine

Bug in String class compareTo

Postby hawesie » Thu Feb 14, 2013 10:30 am

In the String class compareTo method, lines 211 and 212:

Code: Select all
char c1 = this.characters[i];
char c2 = this.characters[i];


should be


Code: Select all
char c1 = this.characters[i];
char c2 = str.characters[i];


cheers,

Nick
hawesie
New User
 
Posts: 12
Joined: Thu Sep 10, 2009 8:09 am

Re: Bug in String class compareTo

Postby skoehler » Thu Feb 14, 2013 11:09 am

Fixed in both trunk and 0.9.1-x branch. Thanks for the report.
skoehler
leJOS Team Member
 
Posts: 1114
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff