Bug 63840

Summary: warning on unused labels
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: martinae
Version: 3.0   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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