Bug 29343 - [M4] Scribbling on missing return statement needs to go on a diet
Summary: [M4] Scribbling on missing return statement needs to go on a diet
Status: RESOLVED DUPLICATE of bug 27298
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-12 05:17 EST by Bob Foster CLA
Modified: 2003-01-13 04:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Foster CLA 2003-01-12 05:17:30 EST
This has gotten completely out of hand in M4. A missing return statement can 
result in error highlighting of every line of code in a method, often 
rendering it unreadable. This forces a style of programming where dummy return 
statements must be typed in just so the user can read the code. (When combined 
with the pernicious braces gobble next statement bug, one can spend more time 
working around the assistance than actually writing code.)

Previous releases, too, have error highlighted the wrong code, though not so 
much of it. Lines preceding the missing return are not in error, nor are they  
where this error is detected. Please fix this by doing what you do when there 
are duplicate return statements: flag only the closing right brace.
Comment 1 Philipe Mulet CLA 2003-01-13 04:23:33 EST

*** This bug has been marked as a duplicate of 27298 ***