Name

MalformedParameterizedTypeException

Synopsis

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.

java.lang.reflect.MalformedParameterizedTypeException

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

public class MalformedParameterizedTypeException extends RuntimeException {
// Public Constructors
     public MalformedParameterizedTypeException( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.