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 193157 Details for
Bug 342671
ClassCastException: org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding cannot be cast to org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed fix
patch342671.txt (text/plain), 1.97 KB, created by
Ayushman Jain
on 2011-04-13 08:30:18 EDT
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Ayushman Jain
Created:
2011-04-13 08:30:18 EDT
Size:
1.97 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java,v >retrieving revision 1.172 >diff -u -r1.172 DefaultBindingResolver.java >--- dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java 24 Feb 2011 19:31:37 -0000 1.172 >+++ dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java 13 Apr 2011 12:29:20 -0000 >@@ -1523,8 +1523,11 @@ > return null; > } > ArrayType arrayType = (ArrayType) type; >- ArrayBinding arrayBinding = (ArrayBinding) typeBinding; >- return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >+ if (typeBinding.isArrayType()) { >+ ArrayBinding arrayBinding = (ArrayBinding) typeBinding; >+ return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >+ } >+ return getTypeBinding(this.scope.createArrayType(binding, arrayType.getDimensions())); > } > if (typeBinding.isArrayType()) { > typeBinding = ((ArrayBinding) typeBinding).leafComponentType; >@@ -1564,8 +1567,11 @@ > if (this.scope == null) { > return null; > } >- ArrayBinding arrayBinding = (ArrayBinding) binding; >- return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >+ if (binding.isArrayType()) { >+ ArrayBinding arrayBinding = (ArrayBinding) binding; >+ return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >+ } >+ return getTypeBinding(this.scope.createArrayType(binding, arrayType.getDimensions())); > } else if (binding.isArrayType()) { > ArrayBinding arrayBinding = (ArrayBinding) binding; > return getTypeBinding(arrayBinding.leafComponentType);
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 342671
:
193126
|
193148
|
193157
|
193158
|
193271
|
193272
|
193439