Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 166271 Details for
Bug 278172
[exceptions] ClassCastException (BaseTypeBinding can't be cast to ReferenceBinding) on incorrect JSDoc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for bug 278172
patchFor278172 (text/plain), 1.58 KB, created by
Musa
on 2010-04-27 18:02:49 EDT
(
hide
)
Description:
Patch for bug 278172
Filename:
MIME Type:
Creator:
Musa
Created:
2010-04-27 18:02:49 EDT
Size:
1.58 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.core >Index: src/org/eclipse/wst/jsdt/core/infer/InferEngine.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferEngine.java,v >retrieving revision 1.54 >diff -u -r1.54 InferEngine.java >--- src/org/eclipse/wst/jsdt/core/infer/InferEngine.java 23 Feb 2010 02:36:09 -0000 1.54 >+++ src/org/eclipse/wst/jsdt/core/infer/InferEngine.java 27 Apr 2010 21:45:07 -0000 >@@ -1340,7 +1340,8 @@ > { > char []name={}; > for (int j = 0; j < param.types.length; j++) { >- char []typeName=param.types[j].getSimpleTypeName(); >+ //changePrimitiveToObject just changes the first character of a primitive name to upper case. >+ char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName()); > if (j==0) > name=typeName; > else >@@ -1355,8 +1356,19 @@ > } > } > } >+ >+ public char[] changePrimitiveToObject(char[] name) { > >+ //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. >+ String type = String.valueOf(name); >+ if(type.equals("int") || type.equals("boolean") || type.equals("char") || type.equals("double")|| type.equals("float") || type.equals("long") || type.equals("short")) >+ name[0] = Character.toUpperCase(name[0]); >+ >+ return name; >+ >+ } > >+ > > public boolean visit( > IAllocationExpression allocationExpression) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278172
:
137449
|
137450
|
166271
|
168988
|
169117
|
169259
|
169260