diff --git a/java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll b/java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll index 66cb689fbf4..e313aceec61 100644 --- a/java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll +++ b/java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll @@ -124,7 +124,7 @@ class SpringRequestMappingMethod extends SpringControllerMethod { /** Gets the "produces" @RequestMapping annotation value, if present. */ string getProduces() { - result = requestMappingAnnotation.getValue("produces").(StringLiteral).getValue() + result = requestMappingAnnotation.getValue("produces").(CompileTimeConstantExpr).getStringValue() } /** Holds if this is considered an @ResponseBody method. */