Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'web/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/jspel/fixparser.sed')
-rw-r--r--web/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/jspel/fixparser.sed18
1 files changed, 18 insertions, 0 deletions
diff --git a/web/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/jspel/fixparser.sed b/web/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/jspel/fixparser.sed
new file mode 100644
index 0000000000..1aa5e62fec
--- /dev/null
+++ b/web/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/jspel/fixparser.sed
@@ -0,0 +1,18 @@
+#!/usr/bin/sed
+
+#
+# The SSE generally uses compiler setting to turn most warnings into errors.
+# This is a little problematic for JavaCC generated files. We don't want
+# to distribute a customized version of JavaCC nor is there any "template"
+# mechanism. So, this simple sed script goes through the generated token
+# manager and fixes a few things. If JavaCC changes the generated code,
+# it's likely that this script will no longer do the right thing. Ditto with
+# any version of JavaCC besides 3.2. Also, there's no guarantee that this
+# script will even work with an arbitrary JavaCC grammar. It's only been tested
+# with the current JSP EL grammar.
+#
+# Author: Ted A. Carroll (tcarroll@bea.com)
+#
+
+s/static private final class LookaheadSuccess extends java.lang.Error { }/static private final class LookaheadSuccess extends java.lang.Error { \n private static final long serialVersionUID = 1L; \n }/g
+

Back to the top