Summary: | [compiler] warning on comparing same to same | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | ||||||
Version: | 3.1 | ||||||
Target Milestone: | 3.5 M1 | ||||||
Hardware: | PC | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 243414 | ||||||
Attachments: |
|
Description
Adam Kiezun
2005-11-10 09:53:40 EST
Philippe, Should we investigate such a warning? Created attachment 103604 [details] Proposed patch combined with patch for bug 235004 Fixed, released for 3.5M1 Added ProgrammingProblemsTest#test037 Added a new compiler warning to detect comparisons between identical expressions. This diagnosis is controlled by option: JavaCore.COMPILER_PB_COMPARING_IDENTICAL and produces a problem marker which ID is IProblem.ComparingIdentical problem ID. Compiler option ID: Reporting Comparison of Identical Expressions. When enabled, the compiler will issue an error or a warning if a comparison is involving identical operands (e.g 'x == x'). - Option id:"org.eclipse.jdt.core.compiler.problem.comparingIdentical" - Possible values: { "error", "warning", "ignore" } - Default: "warning" entered bug 238226 for ui counterpart Verified for 3.5M1 using I20080805-1307 |