{"record":{"id":"0f50fadb0be2c681","repo":"quarkusio/quarkus","slug":"unsupported-annotation-target","errorCode":null,"errorMessage":"Unsupported annotation target","messagePattern":"Unsupported annotation target","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java","lineNumber":1019,"sourceCode":"        }\n    }\n\n    static boolean defaultFilter(AnnotationTarget target) {\n        // Always ignore constructors, non-public members, synthetic and void methods\n        switch (target.kind()) {\n            case METHOD:\n                MethodInfo method = target.asMethod();\n                return Modifier.isPublic(method.flags())\n                        && !isSynthetic(method.flags())\n                        && method.returnType().kind() != org.jboss.jandex.Type.Kind.VOID\n                        && !method.isConstructor()\n                        && !method.isStaticInitializer();\n            case FIELD:\n                FieldInfo field = target.asField();\n                return Modifier.isPublic(field.flags())\n                        && !isSynthetic(field.flags());\n            default:\n                throw new IllegalArgumentException(\"Unsupported annotation target\");\n        }\n    }\n\n    public static boolean isSynthetic(int mod) {\n        return (mod & 0x00001000) != 0;\n    }\n\n    public static boolean isGetterName(String name, Type returnType) {\n        if (name.startsWith(GET_PREFIX)) {\n            return true;\n        }\n        if (returnType == null\n                || (returnType.name().equals(PrimitiveType.BOOLEAN.name()) || returnType.name().equals(DotNames.BOOLEAN))) {\n            return name.startsWith(IS_PREFIX) || name.startsWith(HAS_PREFIX);\n        }\n        return false;\n    }\n","sourceCodeStart":1001,"sourceCodeEnd":1037,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java#L1001-L1037","documentation":"Generic build-time guard in the Qute ValueResolverGenerator: while generating a value resolver it encountered an annotation target kind it does not know how to process (not a method, field, or class accepted by the filter). This is effectively an internal unreachable-branch sentinel — the target kind at fault determines the failure, and it usually indicates an unsupported or malformed annotation placement on an endpoint or resolver candidate.","triggerScenarios":"Thrown at independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java:1019 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the annotation placement on the reported element — it must be on a public method, field, or class","Avoid annotating constructors or synthetic members with Qute value-resolver annotations","Report as a Quarkus bug if the target looks legitimate"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}