apache/maven · error · TypeNotBoundException
Type variable not found: {} ( {} )
Error message
Type variable not found: {} ( {} ) What it means
Error "Type variable not found: {} ( {} )" thrown in apache/maven.
Source
Thrown at impl/maven-di/src/main/java/org/apache/maven/di/impl/Types.java:192
*/
public static Type bind(Type type, Map<TypeVariable<?>, Type> bindings) {
return bind(type, bindings::get);
}
/**
* Binds a given type with actual type arguments
*
* @param type a type to be bound
* @param bindings a lookup function for actual types
*/
public static Type bind(Type type, Function<TypeVariable<?>, Type> bindings) {
if (type instanceof Class) {
return type;
}
if (type instanceof TypeVariable<?> typeVariable) {
Type actualType = bindings.apply(typeVariable);
if (actualType == null) {
throw new TypeNotBoundException("Type variable not found: " + typeVariable + " ( "
+ typeVariable.getGenericDeclaration() + " ) ");
}
return actualType;
}
if (type instanceof ParameterizedType parameterizedType) {
Type[] typeArguments = parameterizedType.getActualTypeArguments();
Type[] typeArguments2 = new Type[typeArguments.length];
for (int i = 0; i < typeArguments.length; i++) {
typeArguments2[i] = bind(typeArguments[i], bindings);
}
return new ParameterizedTypeImpl(
parameterizedType.getOwnerType(), parameterizedType.getRawType(), typeArguments2);
}
if (type instanceof GenericArrayType genericArrayType) {
Type componentType = genericArrayType.getGenericComponentType();
return new GenericArrayTypeImpl(bind(componentType, bindings));
}
if (type instanceof WildcardType wildcardType) {View on GitHub (pinned to e4093d4e12)
When it happens
Trigger: Thrown at impl/maven-di/src/main/java/org/apache/maven/di/impl/Types.java:192 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/maven@e4093d4e12 (2026-08-21).
Data as JSON: /api/errors/0b81261c07394bd5.
Report an issue: GitHub.