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 34902 Details for
Bug 127583
[1.5][compiler] Call to constructor with mismatched type parameter and arguement not detected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch for TypeBinding
127583.txt (text/plain), 2.25 KB, created by
Philipe Mulet
on 2006-02-17 06:11:07 EST
(
hide
)
Description:
patch for TypeBinding
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2006-02-17 06:11:07 EST
Size:
2.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java,v >retrieving revision 1.66 >diff -u -r1.66 TypeBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 10 Jan 2006 14:37:28 -0000 1.66 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 17 Feb 2006 11:12:23 -0000 >@@ -397,14 +397,28 @@ > } > WildcardBinding otherWildcard = (WildcardBinding) otherType; > if (otherWildcard.otherBounds != null) return false; // not a true wildcard (intersection type) >+ TypeBinding otherBound = otherWildcard.bound; > switch(otherWildcard.boundKind) { > case Wildcard.EXTENDS: >- if (otherWildcard.bound == this) return true; // ? extends T <= ? extends ? extends T >- return upperBound != null && upperBound.isCompatibleWith(otherWildcard.bound); >+ if (otherBound == this) return true; // ? extends T <= ? extends ? extends T >+ if (upperBound instanceof ReferenceBinding) { >+ ReferenceBinding match = ((ReferenceBinding)upperBound).findSuperTypeWithSameErasure(otherBound); >+ if (match != null && match.isRawType()) { >+ return match == otherBound; // forbide: Collection <= ? extends Collection<?> >+ } >+ } >+ return upperBound != null && upperBound.isCompatibleWith(otherBound); > > case Wildcard.SUPER : >- if (otherWildcard.bound == this) return true; // ? super T <= ? super ? super T >- return lowerBound != null && otherWildcard.bound.isCompatibleWith(lowerBound); >+ if (otherBound == this) return true; // ? super T <= ? super ? super T >+ if (lowerBound == null) return false; >+ if (otherBound instanceof ReferenceBinding) { >+ ReferenceBinding match = ((ReferenceBinding)otherBound).findSuperTypeWithSameErasure(lowerBound); >+ if (match != null && match.isRawType()) { >+ return match == lowerBound; // forbide: Collection <= ? super Collection<?> >+ } >+ } >+ return otherBound.isCompatibleWith(lowerBound); > > case Wildcard.UNBOUND : > default:
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 127583
: 34902