View | Details | Raw Unified | Return to bug 110799 | Differences between
and this patch

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/TypeBinding.java (+5 lines)
Lines 879-884 Link Here
879
	 * @see org.eclipse.jdt.core.dom.ITypeBinding#getTypeParameters()
879
	 * @see org.eclipse.jdt.core.dom.ITypeBinding#getTypeParameters()
880
	 */
880
	 */
881
	public ITypeBinding[] getTypeParameters() {
881
	public ITypeBinding[] getTypeParameters() {
882
		switch(this.binding.kind()) {
883
			case Binding.RAW_TYPE :
884
			case Binding.PARAMETERIZED_TYPE :
885
				return NO_TYPE_BINDINGS;
886
		}
882
		TypeVariableBinding[] typeVariableBindings = this.binding.typeVariables();
887
		TypeVariableBinding[] typeVariableBindings = this.binding.typeVariables();
883
		if (typeVariableBindings != null) {
888
		if (typeVariableBindings != null) {
884
			int typeVariableBindingsLength = typeVariableBindings.length;
889
			int typeVariableBindingsLength = typeVariableBindings.length;
(-)dom/org/eclipse/jdt/core/dom/ITypeBinding.java (-2 / +1 lines)
Lines 449-456 Link Here
449
	 * <p>
449
	 * <p>
450
	 * Note that type arguments only occur on a type binding that represents
450
	 * Note that type arguments only occur on a type binding that represents
451
	 * an instance of a generic type corresponding to a parameterized type
451
	 * an instance of a generic type corresponding to a parameterized type
452
	 * reference (e.g., <code>Collection&lt;String&gt;</code>) or to a raw
452
	 * reference (e.g., <code>Collection&lt;String&gt;</code>).
453
	 * type reference (e.g., <code>Collection</code>) to a generic type.
454
	 * Do not confuse these with type parameters which only occur on the
453
	 * Do not confuse these with type parameters which only occur on the
455
	 * type binding corresponding directly to the declaration of the 
454
	 * type binding corresponding directly to the declaration of the 
456
	 * generic class or interface (e.g., <code>Collection&lt;T&gt;</code>).
455
	 * generic class or interface (e.g., <code>Collection&lt;T&gt;</code>).

Return to bug 110799