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

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/ITypeBinding.java (-10 / +13 lines)
Lines 54-66 Link Here
54
	 * <p>If the receiver is an array binding, then the resulting dimension is the given dimension
54
	 * <p>If the receiver is an array binding, then the resulting dimension is the given dimension
55
	 * plus the dimension of the receiver. Otherwise the resulting dimension is the given
55
	 * plus the dimension of the receiver. Otherwise the resulting dimension is the given
56
	 * dimension.</p>
56
	 * dimension.</p>
57
	 * <p>It cannot be called on a recovered binding.</p>
58
	 *
57
	 *
59
	 * @param dimension the given dimension
58
	 * @param dimension the given dimension
60
	 * @return an array type binding
59
	 * @return an array type binding
61
	 * @throws IllegalArgumentException:<ul>
60
	 * @throws IllegalArgumentException:<ul>
62
	 * <li>if the receiver represents the void type</li>
61
	 * <li>if the receiver represents the void type</li>
63
	 * <li>if the receiver represents a recovered binding</li>
64
	 * <li>if the resulting dimensions is lower than one or greater than 255</li>
62
	 * <li>if the resulting dimensions is lower than one or greater than 255</li>
65
	 * </ul>
63
	 * </ul>
66
	 * @since 3.3
64
	 * @since 3.3
Lines 369-375 Link Here
369
	 * @return the binding for the package in which this class, interface,
367
	 * @return the binding for the package in which this class, interface,
370
	 * enum, or annotation type is declared, or <code>null</code> if this type
368
	 * enum, or annotation type is declared, or <code>null</code> if this type
371
	 * binding represents a primitive type, an array type, the null type,
369
	 * binding represents a primitive type, an array type, the null type,
372
	 * a type variable, a wildcard type, a capture binding, or a recovered binding.
370
	 * a type variable, a wildcard type, or a capture binding.
371
	 * The package of a recovered type reference binding is the package of the
372
	 * enclosing type.
373
	 */
373
	 */
374
	public IPackageBinding getPackage();
374
	public IPackageBinding getPackage();
375
375
Lines 454-461 Link Here
454
	 * <p>
454
	 * <p>
455
	 * If this type binding represents an interface, an array type, a
455
	 * If this type binding represents an interface, an array type, a
456
	 * primitive type, the null type, a type variable, an enum type,
456
	 * primitive type, the null type, a type variable, an enum type,
457
	 * an annotation type, a wildcard type, a capture binding, or a
457
	 * an annotation type, a wildcard type, or a capture binding then
458
	 * recovered binding then <code>null</code> is returned.
458
	 * <code>null</code> is returned.
459
	 * </p>
459
	 * </p>
460
	 *
460
	 *
461
	 * @return the superclass of the class represented by this type binding,
461
	 * @return the superclass of the class represented by this type binding,
Lines 593-599 Link Here
593
	 * of the given type, as specified in section 5.2 of <em>The Java Language
593
	 * of the given type, as specified in section 5.2 of <em>The Java Language
594
	 * Specification, Third Edition</em> (JLS3).
594
	 * Specification, Third Edition</em> (JLS3).
595
	 *
595
	 *
596
	 * <p>If the receiver or the argument is a recovered type, the answer is always false.</p>
596
	 * <p>If the receiver or the argument is a recovered type, the answer is always false,
597
	 * unless the two types are identical or the argument is <code>java.lang.Object</code></p>
597
	 *
598
	 *
598
	 * @param variableType the type of a variable to check compatibility against
599
	 * @param variableType the type of a variable to check compatibility against
599
	 * @return <code>true</code> if an expression of this type can be assigned to a
600
	 * @return <code>true</code> if an expression of this type can be assigned to a
Lines 641-647 Link Here
641
	 * <code>A.isCastCompatible(B)</code>
642
	 * <code>A.isCastCompatible(B)</code>
642
	 * </p>
643
	 * </p>
643
	 *
644
	 *
644
	 * <p>If the receiver or the argument is a recovered type, the answer is always false.</p>
645
	 * <p>If the receiver or the argument is a recovered type, the answer is always false,
646
	 * unless the two types are identical or the argument is <code>java.lang.Object</code></p>
645
	 *
647
	 *
646
	 * @param type the type to check compatibility against
648
	 * @param type the type to check compatibility against
647
	 * @return <code>true</code> if this type is cast compatible with the
649
	 * @return <code>true</code> if this type is cast compatible with the
Lines 651-659 Link Here
651
	public boolean isCastCompatible(ITypeBinding type);
653
	public boolean isCastCompatible(ITypeBinding type);
652
654
653
	/**
655
	/**
654
	 * Returns whether this type binding represents a class type.
656
	 * Returns whether this type binding represents a class type or a recovered binding.
655
	 *
657
	 *
656
	 * @return <code>true</code> if this object represents a class,
658
	 * @return <code>true</code> if this object represents a class or a recovered binding,
657
	 *    and <code>false</code> otherwise
659
	 *    and <code>false</code> otherwise
658
	 */
660
	 */
659
	public boolean isClass();
661
	public boolean isClass();
Lines 844-850 Link Here
844
	 * as specified in section 4.10 of <em>The Java Language
846
	 * as specified in section 4.10 of <em>The Java Language
845
	 * Specification, Third Edition</em> (JLS3).
847
	 * Specification, Third Edition</em> (JLS3).
846
	 *
848
	 *
847
	 * <p>If the receiver or the argument is a recovered type, the answer is always false.</p>
849
	 * <p>If the receiver or the argument is a recovered type, the answer is always false,
850
	 * unless the two types are identical or the argument is <code>java.lang.Object</code></p>
848
	 *
851
	 *
849
	 * @param type the type to check compatibility against
852
	 * @param type the type to check compatibility against
850
	 * @return <code>true</code> if this type is subtype compatible with the
853
	 * @return <code>true</code> if this type is subtype compatible with the
(-)dom/org/eclipse/jdt/core/dom/IBinding.java (-1 / +1 lines)
Lines 274-280 Link Here
274
	 * </p>
274
	 * </p>
275
	 * <p>Note that the key for annotation bindings and member value pair bindings is
275
	 * <p>Note that the key for annotation bindings and member value pair bindings is
276
	 * not yet implemented. This returns <code>null</code> for these 2 kinds of bindings.<br>
276
	 * not yet implemented. This returns <code>null</code> for these 2 kinds of bindings.<br>
277
	 * <code>null</code> is also returned for recovered bindings
277
	 * Recovered bindings have a unique key.
278
	 * </p>
278
	 * </p>
279
	 *
279
	 *
280
	 * @return the key for this binding
280
	 * @return the key for this binding

Return to bug 180905