Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351351

Summary: [validation] The local variable is never read
Product: [WebTools] JSDT Reporter: Victor Homyakov <vkhomyackov>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: CLOSED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3 CC: alexjeffburke, psuzzi, sbecker, toni.ruottu
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Victor Homyakov CLA 2011-07-06 12:09:06 EDT
Build Identifier: 

When variable is used only in typeof expression, it is marked as never read.

Reproducible: Always

Steps to Reproduce:
Create JavaScript file with function
function test() {
  var found = true;
  return typeof found != 'undefined';
}
Comment 1 Victor Homyakov CLA 2011-11-29 05:44:44 EST
Tested on Eclipse 3.7.1 and WebTools build wtp-M-3.3.2-20111103043823.zip - bug is still present.
Comment 2 Victor Homyakov CLA 2012-06-29 05:51:02 EDT
Still preseitn in Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120322-1740
Comment 3 Shawn Becker CLA 2017-01-01 13:46:39 EST
Still present in Eclipse Java EE IDE for Web Developers. 
Version: Mars.2 Release (4.5.2) Build id: 20160218-0600
Comment 4 Shawn Becker CLA 2017-01-01 13:50:29 EST
Correction: fixed in Eclipse Java EE IDE for Web Developers. 
Version: Mars.2 Release (4.5.2) Build id: 20160218-0600
Comment 5 Patrik Suzzi CLA 2017-01-10 13:00:18 EST
(In reply to Shawn Becker from comment #4)

Based on this, I'm closing this bug as worksforme.