{"record":{"id":"0f7a89d7f3e0fc17","repo":"bumptech/glide","slug":"unrecognized-annotation","errorCode":null,"errorMessage":"Unrecognized annotation: {}","messagePattern":"Unrecognized annotation: (.+?)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/IndexerGenerator.java","lineNumber":128,"sourceCode":"    if (indexerName.length() >= (MAXIMUM_FILE_NAME_LENGTH - INDEXER_NAME_PREFIX.length())) {\n      indexerName =\n          INDEXER_NAME_PREFIX\n              + UUID.nameUUIDFromBytes(indexerName.getBytes()).toString().replace(\"-\", \"_\");\n    }\n\n    return TypeSpec.classBuilder(indexerName)\n        .addAnnotation(annotationBuilder.build())\n        .addModifiers(Modifier.PUBLIC)\n        .build();\n  }\n\n  private static String getAnnotationValue(Class<? extends Annotation> annotation) {\n    if (annotation == GlideModule.class) {\n      return \"modules\";\n    } else if (annotation == GlideExtension.class) {\n      return \"extensions\";\n    } else {\n      throw new IllegalArgumentException(\"Unrecognized annotation: \" + annotation);\n    }\n  }\n}\n","sourceCodeStart":110,"sourceCodeEnd":132,"githubUrl":"https://github.com/bumptech/glide/blob/eb14a895d8f866e6a08c3e19d50ea3bd2c12c20a/annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/IndexerGenerator.java#L110-L132","documentation":"IndexerGenerator.getAnnotationValue maps an annotation class to its indexer key string ('modules' for GlideModule, 'extensions' for GlideExtension). Any other annotation class is unsupported and rejected defensively. This is a developer-only path inside the processor; users cannot trigger it through normal @GlideModule/@GlideExtension usage.","triggerScenarios":"IndexerGenerator.getAnnotationValue: `if (annotation == GlideModule.class) ... else if (annotation == GlideExtension.class) ... else throw`. Only reachable if internal Glide code calls getAnnotationValue with a different annotation type — i.e. an internal/programming error, not a user-annotation problem.","commonSituations":"Effectively unreachable for end users; would indicate a Glide compiler bug or a forked/modified processor that introduced a new indexer annotation without updating getAnnotationValue.","solutions":["If you forked Glide's compiler, extend getAnnotationValue to handle your new annotation class.","Otherwise, report it as a Glide compiler bug with the full stack trace and Glide version."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["This path is internal to Glide; if you hit it without forking the processor, report it upstream with the stack trace.","Avoid running a forked glide:compiler alongside the official one."],"tags":["glide","annotation-processing","indexer","internal"],"backgroundTag":null,"analyzedSha":"eb14a895d8f866e6a08c3e19d50ea3bd2c12c20a","analyzedAt":"2026-08-14T01:43:54.821Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}