The values for the supressSmap and dumpSmap options are hard coded. This makes it impossible to include line mapping information when precompiling a JSP. The included patch should resolve this issue. --- JspC.java.orig Tue Mar 29 17:43:37 2005 +++ JspC.java Wed Apr 27 14:50:21 2005 @@ -114,6 +114,8 @@ private static final String SWITCH_DIE = "-die"; private static final String SWITCH_POOLING = "-poolingEnabled"; private static final String SWITCH_ENCODING = "-javaEncoding"; + private static final String SWITCH_SMAP = "-smap"; + private static final String SWITCH_DUMP_SMAP = "-dumpsmap"; private static final String SHOW_SUCCESS ="-s"; private static final String LIST_ERRORS = "-l"; @@ -147,6 +149,8 @@ private int dieLevel; private boolean helpNeeded = false; private boolean compile = false; + private boolean supressSmap = true; + private boolean dumpSmap = false; private String compiler = null; @@ -293,6 +297,10 @@ setCompilerSourceVM(nextArg()); } else if (tok.equals(SWITCH_TARGET)) { setCompilerTargetVM(nextArg()); + } else if (tok.equals(SWITCH_SMAP)) { + supressSmap = false; + } else if (tok.equals(SWITCH_DUMP_SMAP)) { + dumpSmap = true; } else { if (tok.startsWith("-")) { throw new JasperException("Unrecognized option: " + tok + @@ -406,14 +414,14 @@ * Is the generation of SMAP info for JSR45 debuggin suppressed? */ public boolean isSmapSuppressed() { - return true; + return supressSmap; } /** * Should SMAP info for JSR45 debugging be dumped to a file? */ public boolean isSmapDumped() { - return false; + return dumpSmap; } /**
Created attachment 14861 [details] Patch
I have applied the patch.