Bug 63840 - warning on unused labels
Summary: warning on unused labels
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 09:23 EDT by Adam Kiezun CLA
Modified: 2005-10-28 13:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2004-05-25 09:23:36 EDT
we have warnings for all sorts of unused things. one for unused labels would be
good too.
Comment 1 Philipe Mulet CLA 2004-05-25 10:01:10 EDT
deferred
Comment 2 Philipe Mulet CLA 2005-10-14 18:37:50 EDT
reopen
Comment 3 Philipe Mulet CLA 2005-10-14 18:39:25 EDT
Added support. Tuned existing test suites.

* COMPILER / Reporting Unreferenced Label
*    When enabled, the compiler will issue an error or a warning when
encountering a labeled statement which label
*    is never explicitly referenced. A label is considered to be referenced if
its name explicitly appears behind a break
*    or continue statement; for instance the following label would be considered
unreferenced;   LABEL: { break; }
*     - option id:         "org.eclipse.jdt.core.compiler.problem.unusedLabel"
*     - possible values:   { "error", "warning", "ignore" }
*     - default:           "warning"
Comment 4 Philipe Mulet CLA 2005-10-14 18:39:40 EDT
fixed
Comment 5 Martin Aeschlimann CLA 2005-10-17 04:50:19 EDT
UI added for the new option > 20051017
Comment 6 Olivier Thomann CLA 2005-10-28 13:37:20 EDT
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a