Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 335
نمايش فراداده

MalformedParameterizedTypeExceptionjava.lang.reflect

Java 5.0serializable unchecked

An exception of this type is thrown during reflection if the generic type information contained in a class file is syntactically correct but semantically wrong. An example would be if the number of type parameters in a ParameterizedType differs from the number of type variables declared by the generic type. See also GenericSignatureFormatError. Although this type is not an Error, it does indicate a malformed class file and should not arise in common practice.

Figure 10-97. java.lang.reflect.MalformedParameterizedTypeException

public class

MalformedParameterizedTypeException extends RuntimeException { // Public Constructors public

MalformedParameterizedTypeException ( ); }