Author: markt Date: Sat Jun 3 19:38:21 2017 New Revision: 1797527 URL: http://svn.apache.org/viewvc?rev=1797527&view=rev Log: Remove commented out code. Tomcat doesn't support something to JSP.
Modified: tomcat/trunk/java/org/apache/jasper/compiler/SmapUtil.java Modified: tomcat/trunk/java/org/apache/jasper/compiler/SmapUtil.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/SmapUtil.java?rev=1797527&r1=1797526&r2=1797527&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/SmapUtil.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/SmapUtil.java Sat Jun 3 19:38:21 2017 @@ -79,22 +79,6 @@ public class SmapUtil { // set up our SMAP generator SmapGenerator g = new SmapGenerator(); - /** Disable reading of input SMAP because: - 1. There is a bug here: getRealPath() is null if .jsp is in a jar - Bugzilla 14660. - 2. Mappings from other sources into .jsp files are not supported. - TODO: fix 1. if 2. is not true. - // determine if we have an input SMAP - String smapPath = inputSmapPath(ctxt.getRealPath(ctxt.getJspFile())); - File inputSmap = new File(smapPath); - if (inputSmap.exists()) { - byte[] embeddedSmap = null; - byte[] subSmap = SDEInstaller.readWhole(inputSmap); - String subSmapString = new String(subSmap, SMAP_ENCODING); - g.addSmap(subSmapString, "JSP"); - } - **/ - // now, assemble info about our own stratum (JSP) using JspLineMap SmapStratum s = new SmapStratum("JSP"); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org