History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-13251
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: C. Benson Manica
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Unreachable code" compile error not diagnosed by inspector

Created: 22 Nov 06 02:11   Updated: 16 Jan 07 18:19
Component/s: Editor. Error Highlighting
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. ss.PNG
(90 kb)
Environment: 6.02 Beta for Windows XP

Build: 6,083
Severity: Medium


 Description  « Hide
The following simple code is accepted by the code inspector with warnings only, despite the fact that the compiler rejects it on the grounds that the println() is unreachable:

public class TestClass {
public static void main(String[] args) {
while(true) {
try { break; } finally { continue; }
}
System.out.println("Hello, world!");
}
}

Screenshot is attached.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.