{"record":{"id":"7b9786dc3448718d","repo":"apache/maven","slug":"cannot-multiply-left-and-right","errorCode":null,"errorMessage":"Cannot multiply ${left} and ${right}","messagePattern":"Cannot multiply (.+?) and (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java","lineNumber":479,"sourceCode":"            return leftNumber.doubleValue() - rightNumber.doubleValue();\n        } else {\n            throw new RuntimeException(\"Cannot subtract \" + right + \" from \" + left);\n        }\n    }\n\n    /**\n     * Multiplies two numeric operands.\n     *\n     * @param left the left operand\n     * @param right the right operand\n     * @return the result of the multiplication\n     * @throws RuntimeException if the operands cannot be multiplied\n     */\n    private static Object multiply(Object left, Object right) {\n        if (left instanceof Number leftNumber && right instanceof Number rightNumber) {\n            return leftNumber.doubleValue() * rightNumber.doubleValue();\n        } else {\n            throw new RuntimeException(\"Cannot multiply \" + left + \" and \" + right);\n        }\n    }\n\n    /**\n     * Divides the left operand by the right operand.\n     *\n     * @param left the left operand (dividend)\n     * @param right the right operand (divisor)\n     * @return the result of the division\n     * @throws RuntimeException if the operands cannot be divided\n     * @throws ArithmeticException if attempting to divide by zero\n     */\n    private static Object divide(Object left, Object right) {\n        if (left instanceof Number leftNumber && right instanceof Number rightNumber) {\n            double divisor = rightNumber.doubleValue();\n            if (divisor == 0) {\n                throw new ArithmeticException(\"Division by zero\");\n            }","sourceCodeStart":461,"sourceCodeEnd":497,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java#L461-L497","documentation":"Error \"Cannot multiply ${left} and ${right}\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionParser.java:479 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"}