Avoid bottleneck by calling the synchronized method only once.
Patch provided by Robert Andersson.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@646889
13f79535-47bb-0310-9956-
ffa450edef68
*/
public class PageContextImpl extends PageContext {
+ private static final JspFactory jspf = JspFactory.getDefaultFactory();
+
private BodyContentImpl[] outs;
private int depth;
final ProtectedFunctionMapper functionMap, final boolean escape)
throws ELException {
Object retValue;
- final ExpressionFactory exprFactory = JspFactory.getDefaultFactory().getJspApplicationContext(pageContext.getServletContext()).getExpressionFactory();
+ final ExpressionFactory exprFactory = jspf.getJspApplicationContext(pageContext.getServletContext()).getExpressionFactory();
if (SecurityUtil.isPackageProtectionEnabled()) {
try {
retValue = AccessController