Tuesday, September 27, 2005

Bug in IDEA IntelliJ 5.0.1 Build #3496???

Maybe it's a bug in IDEA IntelliJ 5.0.1 Build #3496 when I use while and try/catch together.

If I surround while statement in a try/catch statement (see the picture), I've got an warning "while statment cannot complete without throwing an exception".


But if I try to put try/catch statement into while statement's block, I meet the same warning.


Update at 3:16 PM: Reply from JetBrains: "It's not a bug." IDEA IntelliJ inspected that I used a while(true) loop so it can be infinite but it's my intent. So maybe I should change this post's title to "A bug? No, it is an intelligence" ;-)

No comments: