src/share/classes/java/lang/Class.java

Print this page
rev 1343 : 6857803: Missing links to exceptions in javadoc for Class.getGeneric{Superclass, Interfaces}
Reviewed-by: chegar

*** 625,635 **** * array of length 0 if the underlying generic declaration declares no type * variables. * * @return an array of {@code TypeVariable} objects that represent * the type variables declared by this generic declaration ! * @throws GenericSignatureFormatError if the generic * signature of this generic declaration does not conform to * the format specified in the Java Virtual Machine Specification, * 3rd edition * @since 1.5 */ --- 625,635 ---- * array of length 0 if the underlying generic declaration declares no type * variables. * * @return an array of {@code TypeVariable} objects that represent * the type variables declared by this generic declaration ! * @throws java.lang.reflect.GenericSignatureFormatError if the generic * signature of this generic declaration does not conform to * the format specified in the Java Virtual Machine Specification, * 3rd edition * @since 1.5 */
*** 671,686 **** * class, an interface, a primitive type, or void, then null is * returned. If this object represents an array class then the * {@code Class} object representing the {@code Object} class is * returned. * ! * @throws GenericSignatureFormatError if the generic * class signature does not conform to the format specified in the * Java Virtual Machine Specification, 3rd edition * @throws TypeNotPresentException if the generic superclass * refers to a non-existent type declaration ! * @throws MalformedParameterizedTypeException if the * generic superclass refers to a parameterized type that cannot be * instantiated for any reason * @return the superclass of the class represented by this object * @since 1.5 */ --- 671,686 ---- * class, an interface, a primitive type, or void, then null is * returned. If this object represents an array class then the * {@code Class} object representing the {@code Object} class is * returned. * ! * @throws java.lang.reflect.GenericSignatureFormatError if the generic * class signature does not conform to the format specified in the * Java Virtual Machine Specification, 3rd edition * @throws TypeNotPresentException if the generic superclass * refers to a non-existent type declaration ! * @throws java.lang.reflect.MalformedParameterizedTypeException if the * generic superclass refers to a parameterized type that cannot be * instantiated for any reason * @return the superclass of the class represented by this object * @since 1.5 */
*** 793,810 **** * 0. * * <p>If this object represents a primitive type or void, the * method returns an array of length 0. * ! * @throws GenericSignatureFormatError * if the generic class signature does not conform to the format * specified in the Java Virtual Machine Specification, 3rd edition * @throws TypeNotPresentException if any of the generic * superinterfaces refers to a non-existent type declaration ! * @throws MalformedParameterizedTypeException if any of the ! * generic superinterfaces refer to a parameterized type that cannot ! * be instantiated for any reason * @return an array of interfaces implemented by this class * @since 1.5 */ public Type[] getGenericInterfaces() { if (getGenericSignature() != null) --- 793,810 ---- * 0. * * <p>If this object represents a primitive type or void, the * method returns an array of length 0. * ! * @throws java.lang.reflect.GenericSignatureFormatError * if the generic class signature does not conform to the format * specified in the Java Virtual Machine Specification, 3rd edition * @throws TypeNotPresentException if any of the generic * superinterfaces refers to a non-existent type declaration ! * @throws java.lang.reflect.MalformedParameterizedTypeException ! * if any of the generic superinterfaces refer to a parameterized ! * type that cannot be instantiated for any reason * @return an array of interfaces implemented by this class * @since 1.5 */ public Type[] getGenericInterfaces() { if (getGenericSignature() != null)