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 39293 Details for
Bug 110799
[1.5] Raw bindings miss type arguments but sometimes have type parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_110799.txt (text/plain), 1.97 KB, created by
Olivier Thomann
on 2006-04-24 11:34:35 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-04-24 11:34:35 EDT
Size:
1.97 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/TypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v >retrieving revision 1.114 >diff -u -r1.114 TypeBinding.java >--- dom/org/eclipse/jdt/core/dom/TypeBinding.java 29 Mar 2006 02:54:51 -0000 1.114 >+++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 24 Apr 2006 15:21:31 -0000 >@@ -879,6 +879,11 @@ > * @see org.eclipse.jdt.core.dom.ITypeBinding#getTypeParameters() > */ > public ITypeBinding[] getTypeParameters() { >+ switch(this.binding.kind()) { >+ case Binding.RAW_TYPE : >+ case Binding.PARAMETERIZED_TYPE : >+ return NO_TYPE_BINDINGS; >+ } > TypeVariableBinding[] typeVariableBindings = this.binding.typeVariables(); > if (typeVariableBindings != null) { > int typeVariableBindingsLength = typeVariableBindings.length; >Index: dom/org/eclipse/jdt/core/dom/ITypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java,v >retrieving revision 1.58 >diff -u -r1.58 ITypeBinding.java >--- dom/org/eclipse/jdt/core/dom/ITypeBinding.java 24 Apr 2006 14:36:33 -0000 1.58 >+++ dom/org/eclipse/jdt/core/dom/ITypeBinding.java 24 Apr 2006 15:21:31 -0000 >@@ -449,8 +449,7 @@ > * <p> > * Note that type arguments only occur on a type binding that represents > * an instance of a generic type corresponding to a parameterized type >- * reference (e.g., <code>Collection<String></code>) or to a raw >- * type reference (e.g., <code>Collection</code>) to a generic type. >+ * reference (e.g., <code>Collection<String></code>). > * Do not confuse these with type parameters which only occur on the > * type binding corresponding directly to the declaration of the > * generic class or interface (e.g., <code>Collection<T></code>).
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 110799
: 39293 |
39294