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

Bug 335362

Summary: [validation] Incorrect Validation error with JSDoc and && operator
Product: [WebTools] JSDT Reporter: Paul Beusterien <paul.beusterien>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.3   
Target Milestone: Future   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.