{"record":{"id":"7fc9dd20e8607b57","repo":"oracle/graal","slug":"invalid-type","errorCode":null,"errorMessage":"Invalid type: ","messagePattern":"Invalid type: ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java","lineNumber":918,"sourceCode":"    }\n\n    EspressoExternalResolvedInstanceType getJavaLangObject() {\n        return java_lang_Object;\n    }\n\n    EspressoExternalResolvedInstanceType[] getArrayInterfaces() {\n        return arrayInterfaces;\n    }\n\n    JavaType lookupType(String name, EspressoExternalResolvedInstanceType accessingClass, boolean resolve) {\n        JVMCIError.guarantee(!name.isEmpty(), \"Name must not be empty\");\n        if (name.charAt(0) == '[') {\n            int dims = 0;\n            do {\n                dims++;\n            } while (dims < name.length() && name.charAt(dims) == '[');\n            if (dims >= name.length()) {\n                throw new IllegalArgumentException(\"Invalid type: \" + name);\n            }\n            JavaType javaType = lookupNonArrayType(name.substring(dims), accessingClass, resolve);\n            if (javaType instanceof EspressoResolvedJavaType resolved) {\n                return new EspressoExternalResolvedArrayType(resolved, dims, this);\n            }\n            if (resolve) {\n                throw new NoClassDefFoundError(name);\n            }\n            return UnresolvedJavaType.create(name);\n        }\n        return lookupNonArrayType(name, accessingClass, resolve);\n    }\n\n    private JavaType lookupNonArrayType(String name, EspressoExternalResolvedInstanceType accessingClass, boolean resolve) {\n        assert !name.isEmpty() && name.charAt(0) != '[';\n        if (name.length() == 1) {\n            JavaKind kind = JavaKind.fromPrimitiveOrVoidTypeChar(name.charAt(0));\n            return forPrimitiveKind(kind);","sourceCodeStart":900,"sourceCodeEnd":936,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java#L900-L936","documentation":"Error \"Invalid type: \" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java:918 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Invalid type:","solutions":["Fix the condition reported by the error: Invalid type:","Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: Invalid type:","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}