Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 278172 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/core/infer/InferEngine.java (-1 / +10 lines)
Lines 1340-1346 Link Here
1340
				{
1340
				{
1341
					char []name={};
1341
					char []name={};
1342
					for (int j = 0; j < param.types.length; j++) {
1342
					for (int j = 0; j < param.types.length; j++) {
1343
						char []typeName=param.types[j].getSimpleTypeName();
1343
						//char []typeName=param.types[j].getSimpleTypeName();
1344
						//make sure we are using the type version of Boolean, even if the user entered boolean as the JSdoc type.
1345
						char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName());
1344
						if (j==0)
1346
						if (j==0)
1345
							name=typeName;
1347
							name=typeName;
1346
						else
1348
						else
Lines 1855-1859 Link Here
1855
	{
1857
	{
1856
		return compUnit.findInferredType(className);
1858
		return compUnit.findInferredType(className);
1857
	}
1859
	}
1860
	
1861
	public char[] changePrimitiveToObject(char[] name) {
1862
		//Changes the first character of the name of the primitive types to uppercase. This will allow future reference to the object wrapper instead of the primitive type.
1863
		if(CharOperation.equals(name, "boolean".toCharArray(), false)) //$NON-NLS-1$
1864
			return BooleanType.getName();
1865
		return name;
1866
	}
1858
1867
1859
}
1868
}

Return to bug 278172