Re: [appengine-java] Re: Java while statement bug on GAE server?

2010-10-27 Thread hirokazu usui
Wow Thank you Don you have a very keen eye. On Wed, Oct 27, 2010 at 12:53 AM, l.denardo lorenzo.dena...@gmail.comwrote: I need a good pair of glasses :-) On Oct 26, 5:42 pm, Don Schwarz schwa...@google.com wrote: Yes, it's a bug in your code: while(tempFlag == true); Note the

[appengine-java] Re: Java while statement bug on GAE server?

2010-10-26 Thread l.denardo
Don't know APIs very well, but anyway it looks like in the while version you check one link in the condition, then request newLink again in the method body. At the end of the list you check for the last element not to be null, then ask for one more (which is out of list bounds). You should be

[appengine-java] Re: Java while statement bug on GAE server?

2010-10-26 Thread doc123
Sorry to use specific sample code. So I tried more basic following code. try { int i =0; boolean tempFlag = false; while(tempFlag == true); { i++; out.println(tempFlag + i + := + tempFlag); tempFlag = false; } } catch(Exception e) { out.println(Error + e.toString()); }

[appengine-java] Re: Java while statement bug on GAE server?

2010-10-26 Thread l.denardo
Really looks like a bug. Test condition should fail without printing anything, in fact. Sorry for my misleading answer, and thanks for sharing this. Lorenzo On Oct 26, 5:22 pm, doc123 doc.u...@gmail.com wrote: Sorry to use specific sample code. So I tried more basic following code. try {

Re: [appengine-java] Re: Java while statement bug on GAE server?

2010-10-26 Thread Don Schwarz
Yes, it's a bug in your code: while(tempFlag == true); Note the semicolon. Try removing it. On Tue, Oct 26, 2010 at 10:22 AM, doc123 doc.u...@gmail.com wrote: Sorry to use specific sample code.  So I tried more basic following code. try { int i =0; boolean tempFlag = false;

[appengine-java] Re: Java while statement bug on GAE server?

2010-10-26 Thread l.denardo
I need a good pair of glasses :-) On Oct 26, 5:42 pm, Don Schwarz schwa...@google.com wrote: Yes, it's a bug in your code: while(tempFlag == true); Note the semicolon.  Try removing it. On Tue, Oct 26, 2010 at 10:22 AM, doc123 doc.u...@gmail.com wrote: Sorry to use specific sample code.