Community
Participate
Working Groups
/** * * @returns {boolean} */ function fun1(a) { return a; } var a = fu* Attempt content assist at the *. If you change the return type to "Boolean" it works fine. java.lang.IllegalArgumentException at org.eclipse.wst.jsdt.internal.core.util.Util.scanTypeSignature(Util.java:2240) at org.eclipse.wst.jsdt.core.Signature.getReturnType(Signature.java:813) at org.eclipse.wst.jsdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:246) at org.eclipse.wst.jsdt.ui.text.java.CompletionProposalLabelProvider.createLabel(CompletionProposalLabelProvider.java:529) at org.eclipse.wst.jsdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:222) at org.eclipse.wst.jsdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:212) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.handleSetData(CompletionProposalPopup.java:833) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$24(CompletionProposalPopup.java:819) at org.eclipse.jface.text.contentassist.CompletionProposalPopup$3.handleEvent(CompletionProposalPopup.java:583)
Created attachment 171587 [details] patch - uses the changePrimitiveToObject() method.
Patch checked in.