{"record":{"id":"25914f6b4ec46996","repo":"apache/maven","slug":"parameterized-method-are-not-supported","errorCode":null,"errorMessage":"Parameterized method are not supported {}","messagePattern":"Parameterized method are not supported (.+?)","errorType":"exception","errorClass":"DIException","httpStatus":null,"severity":"error","filePath":"impl/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java","lineNumber":322,"sourceCode":"                    if (qualifier != null) {\n                        bind(Key.ofType(t), binding);\n                    }\n                }\n            }\n        }\n        // Bind inner classes\n        for (Class<?> inner : key.getRawType().getDeclaredClasses()) {\n            boolean hasQualifier = Stream.of(inner.getAnnotations())\n                    .anyMatch(ann -> ann.annotationType().isAnnotationPresent(Qualifier.class));\n            if (hasQualifier) {\n                bindImplicit(inner);\n            }\n        }\n        // Bind inner providers\n        for (Method method : key.getRawType().getDeclaredMethods()) {\n            if (method.isAnnotationPresent(Provides.class)) {\n                if (method.getTypeParameters().length != 0) {\n                    throw new DIException(\"Parameterized method are not supported \" + method);\n                }\n                Object qualifier = ReflectionUtils.qualifierOf(method);\n                Annotation scope = ReflectionUtils.scopeOf(method);\n                Type returnType = method.getGenericReturnType();\n                Set<Class<?>> types = getBoundTypes(method.getAnnotation(Typed.class), Types.getRawType(returnType));\n                Binding<Object> bind = ReflectionUtils.bindingFromMethod(method).scope(scope);\n                for (Type t : Types.getAllSuperTypes(returnType)) {\n                    if (types == null || types.contains(Types.getRawType(t))) {\n                        bind(Key.ofType(t, qualifier), bind);\n                        if (qualifier != null) {\n                            bind(Key.ofType(t), bind);\n                        }\n                    }\n                }\n            }\n        }\n    }\n","sourceCodeStart":304,"sourceCodeEnd":340,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java#L304-L340","documentation":"Error \"Parameterized method are not supported {}\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java:322 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}