{"record":{"id":"4aff4b52d91695d3","repo":"quarkusio/quarkus","slug":"class-dotname-was-not-found-in-the-index","errorCode":null,"errorMessage":"Class ${dotName} was not found in the index","messagePattern":"Class (.+?) was not found in the index","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JandexUtil.java","lineNumber":313,"sourceCode":"                    owner = mapGenerics(parameterizedType.owner(), mapping);\n                }\n                return ParameterizedType.create(parameterizedType.name(),\n                        mapGenerics(parameterizedType.arguments(), mapping).toArray(new Type[0]), owner);\n            case TYPE_VARIABLE:\n                Type ret = mapping.get(type.asTypeVariable().identifier());\n                if (ret == null) {\n                    throw new IllegalArgumentException(\"Missing type argument mapping for \" + type);\n                }\n                return ret;\n            default:\n                throw new IllegalArgumentException(\"Illegal type in hierarchy: \" + type);\n        }\n    }\n\n    private static ClassInfo fetchFromIndex(DotName dotName, IndexView index) {\n        final ClassInfo classInfo = index.getClassByName(dotName);\n        if (classInfo == null) {\n            throw new IllegalArgumentException(\"Class \" + dotName + \" was not found in the index\");\n        }\n        return classInfo;\n    }\n\n    /**\n     * Returns the enclosing class of the given annotation instance. For field, method or record component annotations,\n     * this will return the enclosing class. For parameters, this will return the enclosing class of the enclosing\n     * method. For classes, it will return the class itself. For type annotations, it will return the class enclosing\n     * the annotated type usage.\n     *\n     * @param annotationInstance the annotation whose enclosing class to look up\n     * @return the enclosing class\n     */\n    public static ClassInfo getEnclosingClass(AnnotationInstance annotationInstance) {\n        return getEnclosingClass(annotationInstance.target());\n    }\n\n    private static ClassInfo getEnclosingClass(AnnotationTarget annotationTarget) {","sourceCodeStart":295,"sourceCodeEnd":331,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JandexUtil.java#L295-L331","documentation":"Guard in JandexUtil.fetchFromIndex: a class referenced in a generic hierarchy being walked is absent from the Jandex index used by the build (dependency not indexed). The DotName that could not be found is appended to the message.","triggerScenarios":"Thrown at independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JandexUtil.java:313 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the dependency containing the class is a regular (indexed) dependency of the application","Avoid endpoint hierarchies spanning classes from non-indexed jars"],"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-12T22:17:10.623Z"}