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 185433 Details for
Bug 332423
[1.5][compiler] ClassCastException when compiling against scala-libary.jar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_332423.txt (text/plain), 1.33 KB, created by
Olivier Thomann
on 2010-12-17 11:03:53 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-12-17 11:03:53 EST
Size:
1.33 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java,v >retrieving revision 1.131 >diff -u -r1.131 BinaryTypeBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java 19 Nov 2010 14:22:00 -0000 1.131 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java 17 Dec 2010 16:03:27 -0000 >@@ -953,7 +953,13 @@ > if (wrapper.signature[wrapper.start] == ':') { > type = this.environment.getResolvedType(TypeConstants.JAVA_LANG_OBJECT, null); > } else { >- type = (ReferenceBinding) this.environment.getTypeFromTypeSignature(wrapper, existingVariables, this, missingTypeNames); >+ TypeBinding typeFromTypeSignature = this.environment.getTypeFromTypeSignature(wrapper, existingVariables, this, missingTypeNames); >+ if (typeFromTypeSignature instanceof ReferenceBinding) { >+ type = (ReferenceBinding) typeFromTypeSignature; >+ } else { >+ // this should only happen if the signature is corrupted (332423) >+ type = this.environment.getResolvedType(TypeConstants.JAVA_LANG_OBJECT, null); >+ } > firstBound = type; > } >
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 332423
:
185433
|
186185