{"record":{"id":"d0a836d09d67c684","repo":"apache/maven","slug":"mismatched-parentheses-missing-closing-parenthesi","errorCode":null,"errorMessage":"Mismatched parentheses: missing closing parenthesis in function call","messagePattern":"Mismatched parentheses: missing closing parenthesis in function call","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java","lineNumber":385,"sourceCode":"    }\n\n    /**\n     * Parses a list of arguments for a function call.\n     *\n     * @return a list of parsed arguments\n     * @throws RuntimeException if there's a mismatch in parentheses\n     */\n    private List<Object> parseArgumentList() {\n        List<Object> args = new ArrayList<>();\n        current++; // Skip the opening parenthesis\n        while (current < tokens.size() && !tokens.get(current).equals(\")\")) {\n            args.add(parseLogicalOr());\n            if (current < tokens.size() && tokens.get(current).equals(\",\")) {\n                current++;\n            }\n        }\n        if (current >= tokens.size() || !tokens.get(current).equals(\")\")) {\n            throw new RuntimeException(\"Mismatched parentheses: missing closing parenthesis in function call\");\n        }\n        current++; // Skip the closing parenthesis\n        return args;\n    }\n\n    /**\n     * Parses a function call.\n     *\n     * @return the result of the function call\n     */\n    private Object parseFunction() {\n        String functionName = tokens.get(current);\n        current++;\n        List<Object> args = parseArgumentList();\n        return functions.get(functionName).apply(args);\n    }\n\n    /**","sourceCodeStart":367,"sourceCodeEnd":403,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java#L367-L403","documentation":"Error \"Mismatched parentheses: missing closing parenthesis in function call\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java:385 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}