~ttx/tomcat6/lucid-sru

« back to all changes in this revision

Viewing changes to java/org/apache/jasper/el/ELContextImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude, Ludovic Claude, Jason Brittain
  • Date: 2010-02-09 23:06:51 UTC
  • mfrom: (2.2.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100209230651-qiv9397g7txhrh99
Tags: 6.0.24-1
[ Ludovic Claude ]
* New upstream version
* Update the POM files for the new version of Tomcat
* Bump up Standards-Version to 3.8.4
* Refresh patches deploy-webapps-build-xml.patch and var_loaders.patch
* Remove patch fix_context_name.patch as it has been applied upstream
* Fix the installation of servlet-api-2.5.jar: the jar
  goes to /usr/share/java as in older versions (6.0.20-2)
  and links to the jar are added to /usr/share/maven-repo
* Moved NEWS.Debian into README.Debian
* Add a link from /usr/share/doc/tomcat6-common/README.Debian to
  /usr/share/doc/tomcat6/README.Debian to include a minimum of
  documentation in the tomcat6 package and add some useful notes. 
  (Closes: #563937, #563939)
* Remove poms from the Debian packaging, use upstream pom files

[ Jason Brittain ]
* Fixed a bug in the init script: When a start fails, the PID file was
  being left in place.  Now the init script makes sure it is deleted.
* Fixed a packaging bug that results in the ROOT webapp not being properly
  installed after an uninstall, then a reinstall.
* control: Corrected a couple of comments (no functional change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import javax.el.ValueExpression;
27
27
import javax.el.VariableMapper;
28
28
 
 
29
import org.apache.jasper.Constants;
 
30
 
29
31
/**
30
32
 * Implementation of ELContext
31
33
 * 
61
63
 
62
64
    private final ELResolver resolver;
63
65
 
64
 
    private FunctionMapper functionMapper = NullFunctionMapper; // immutable
 
66
    private FunctionMapper functionMapper;
65
67
 
66
68
    private VariableMapper variableMapper;
67
69
 
68
70
    public ELContextImpl() {
69
 
        this(ELResolverImpl.DefaultResolver);
 
71
        this(ELResolverImpl.getDefaultResolver());
 
72
        if (Constants.IS_SECURITY_ENABLED) {
 
73
            functionMapper = new FunctionMapper() {
 
74
                public Method resolveFunction(String prefix, String localName) {
 
75
                    return null;
 
76
                }
 
77
            };
 
78
        } else {
 
79
            functionMapper = NullFunctionMapper;
 
80
        }
70
81
    }
71
82
 
72
83
    public ELContextImpl(ELResolver resolver) {