Summary: | No return statement for code with infinite loop | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | John Arthorne <john.arthorne> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
John Arthorne
2002-07-24 14:50:27 EDT
No. This code is legite due to the infinite loop. Put it this way: there is no way you can exit the method without returning something, given you cannot reach the method exit (without an exception). Closing here's your reference Peter http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#37316 i meant: John. sorry Thanks Adam. I looked through JLS but didn't find that section. That clears it up. |