{"record":{"id":"1b406d1bac1586ba","repo":"apache/maven","slug":"more-than-one-qualifier-annotation-on","errorCode":null,"errorMessage":"More than one qualifier annotation on {}","messagePattern":"More than one qualifier annotation on (.+?)","errorType":"exception","errorClass":"DIException","httpStatus":null,"severity":"error","filePath":"impl/maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java","lineNumber":87,"sourceCode":"            if (!field.isSynthetic() || !field.getName().startsWith(\"this$\") || field.getType() != enclosingClass) {\n                continue;\n            }\n            field.setAccessible(true);\n            try {\n                return field.get(innerClassInstance);\n            } catch (IllegalAccessException e) {\n                throw new RuntimeException(e);\n            }\n        }\n        return null;\n    }\n\n    public static @Nullable Object qualifierOf(AnnotatedElement annotatedElement) {\n        Object qualifier = null;\n        for (Annotation annotation : annotatedElement.getDeclaredAnnotations()) {\n            if (annotation.annotationType().isAnnotationPresent(Qualifier.class)) {\n                if (qualifier != null) {\n                    throw new DIException(\"More than one qualifier annotation on \" + annotatedElement);\n                }\n                if (annotation instanceof Named named) {\n                    qualifier = named.value();\n                } else {\n                    Class<? extends Annotation> annotationType = annotation.annotationType();\n                    qualifier = annotationType.getDeclaredMethods().length == 0 ? annotationType : annotation;\n                }\n            }\n        }\n        return qualifier;\n    }\n\n    public static @Nullable Annotation scopeOf(AnnotatedElement annotatedElement) {\n        Annotation scope = null;\n        for (Annotation annotation : annotatedElement.getDeclaredAnnotations()) {\n            if (annotation.annotationType().isAnnotationPresent(org.apache.maven.api.di.Scope.class)) {\n                if (scope != null) {\n                    throw new DIException(\"More than one scope annotation on \" + annotatedElement);","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java#L69-L105","documentation":"Error \"More than one qualifier annotation on {}\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java:87 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"}