Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335362 - [validation] Incorrect Validation error with JSDoc and && operator
Summary: [validation] Incorrect Validation error with JSDoc and && operator
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 13:44 EST by Paul Beusterien CLA
Modified: 2013-06-14 14:26 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 Paul Beusterien CLA 2011-01-25 13:44:37 EST
/**
 * @param {Function} callback   
 */

function foo (callback) {

    if (callback) {   // no validation error 
        bar();
    }
    if (callback  && true) {  
    	// validation error on above line
    	// The operator && is undefined for the argument type(s) 
    	// Function, boolean	andandvalidation.js	/semibug	line 10	JavaScript Problem
        bar();
    }  
};
Comment 1 Chris Jaun CLA 2013-06-14 14:26:48 EDT
This error message is no longer displayed in 3.5.