org.sonar.java.se.symbolicvalues.SymbolicValue$2 cannot be cast to org.sonar.java.se.symbolicvalues.SymbolicValue$ExceptionalSymbolicValue
occurs when I analyze the following class. Obviously, it looks absurd only because I minimized it.
import java.io.
import javax.servlet.*;
import javax.servlet.http.*;
public class SymbolicValueCannotBeCastToSymbolicValueExceptionalSymbolicValue {
private boolean something(HttpSession session, ServletRequest request, ServletResponse response, FilterChain chain)
throws ServletException, IOException {
CacheResponseWrapper wrappedResponse = new CacheResponseWrapper((HttpServletResponse)response, false);
try {
chain.doFilter(request, wrappedResponse);
} catch (ServletException se) {
throw se;
} finally {
if (true) {
return true;
}
}
return true;
}
}
Regards,
Giacomo Boccardo
public class ReturnInFinally {
private class MyException extends Exception {}
private boolean something() {
try {
foo();
} catch (MyException e) {
throw e;
} finally {
return true;
}
return true;
}
abstract void foo() throws MyException;
}
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/3e8b8410-86f4-420b-8c15-cbd505275244%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.