Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351351 - [validation] The local variable is never read
Summary: [validation] The local variable is never read
Status: CLOSED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 12:09 EDT by Victor Homyakov CLA
Modified: 2017-01-10 13:00 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.