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 17058 Details for
Bug 82504
[compiler][1.5] ClassCastException when parsing a CastExpression between an array type and a type variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on Expression class in HEAD
patch_82504.txt (text/plain), 1004 bytes, created by
Olivier Thomann
on 2005-01-10 15:59:36 EST
(
hide
)
Description:
Apply on Expression class in HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-10 15:59:36 EST
Size:
1004 bytes
patch
obsolete
>Index: Expression.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java,v >retrieving revision 1.58 >diff -u -r1.58 Expression.java >--- Expression.java 10 Jan 2005 12:20:51 -0000 1.58 >+++ Expression.java 10 Jan 2005 20:57:53 -0000 >@@ -297,7 +297,12 @@ > exprElementType, > expression); > } else if (castType.isTypeVariable()) { >- TypeBinding match = ((ReferenceBinding)expressionType).findSuperTypeErasingTo((ReferenceBinding)castType); >+ TypeBinding leafType = ((ArrayBinding) expressionType).leafComponentType(); >+ if (leafType.isBaseType()) { >+ reportIllegalCast(scope, castType, expressionType); >+ return false; >+ } >+ TypeBinding match = ((ReferenceBinding)leafType).findSuperTypeErasingTo((ReferenceBinding)castType); > if (match == null) { > checkUnsafeCast(scope, castType, expressionType, match, true); > }
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 82504
: 17058