### 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 @@ *

* 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., Collection<String>) or to a raw - * type reference (e.g., Collection) to a generic type. + * reference (e.g., Collection<String>). * 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., Collection<T>).