I have this loop that won't stop when it should and it's only happen on my production server but not on my dev server. So I'm going crazy.
//objectName can be any value from [a-}],
char objectName = 'a'; //objectName is initialized with value 'a'
//before objectName hit the line below, it was increment objectName++; until the value of
//objectName = '}'
for( char c = objectName; c <= 'z'; c++ ){
//do something
}
objectName can be any character but in my case I know that my objectName will be "}" character, which is technically more than 'z'. So what I don't understand is why is my loop being executed still.
The funny thing is we have test server which uses JAVA 1.6.0_30, and we have try testing there and it's working just fine.
My Dev Server uses : java 1.6.0_45 My Prod Server uses : java 1.6.0_30
If you see anything wrong with my logic please let me know, any circumstance that will make my loop be active even when it shouldn't feel free to let me know.