{"record":{"id":"fe03124c12f244b7","repo":"quarkusio/quarkus","slug":"missing-type-argument-mapping-for-type","errorCode":null,"errorMessage":"Missing type argument mapping for ${type}","messagePattern":"Missing type argument mapping for (.+?)","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":302,"sourceCode":"    private static Type mapGenerics(Type type, Map<String, Type> mapping) {\n        switch (type.kind()) {\n            case ARRAY:\n                ArrayType arrayType = type.asArrayType();\n                return ArrayType.create(mapGenerics(arrayType.constituent(), mapping), arrayType.dimensions());\n            case CLASS:\n                return type;\n            case PARAMETERIZED_TYPE:\n                ParameterizedType parameterizedType = type.asParameterizedType();\n                Type owner = null;\n                if (parameterizedType.owner() != null) {\n                    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","sourceCodeStart":284,"sourceCodeEnd":320,"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#L284-L320","documentation":"IllegalArgumentException from JandexUtil.mapGenerics: while re-mapping a generic type through the current type-argument mapping, a type variable has no entry in the mapping — the declared generics context does not bind that type variable. The unmapped type 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:302 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the generic type is used in a context that binds all its type variables (no raw or partially-parameterized supertypes)","Simplify the generics of the affected resource/response type"],"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"}