MCPcopy Index your code
hub / github.com/apache/tomcat / load

Method load

java/org/apache/jasper/JspCompilationContext.java:778–791  ·  view source on GitHub ↗

Loads the compiled servlet class using the JSP class loader. @return the loaded servlet class @throws JasperException If the class cannot be loaded

()

Source from the content-addressed store, hash-verified

776 * @throws JasperException If the class cannot be loaded
777 */
778 public Class<?> load() throws JasperException {
779 try {
780 getJspLoader();
781
782 String name = getFQCN();
783 servletClass = jspLoader.loadClass(name);
784 } catch (ClassNotFoundException cex) {
785 throw new JasperException(Localizer.getMessage("jsp.error.unable.load"), cex);
786 } catch (Exception e) {
787 throw new JasperException(Localizer.getMessage("jsp.error.unable.compile"), e);
788 }
789 removed = false;
790 return servletClass;
791 }
792
793 /**
794 * Returns the fully qualified class name of the generated servlet or tag handler.

Callers

nothing calls this directly

Calls 4

getJspLoaderMethod · 0.95
getFQCNMethod · 0.95
getMessageMethod · 0.95
loadClassMethod · 0.45

Tested by

no test coverage detected