Bug 45696 SIOOBE in org.eclipse.jsp.AbstractJspParser
When I'm using the JSP editor from the Java Family examples, I get a lot of StringIndexOutOfBoundsException in .log : java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at java.lang.String.charAt(String.java:444) at org.eclipse.jsp.AbstractJspParser.parseAttributes(AbstractJspParser.java:154) at org.eclipse.jsp.AbstractJspParser.parseTag(AbstractJspParser.java:87) at org.eclipse.jsp.AbstractJspParser.parse(AbstractJspParser.java:282) at org.eclipse.jsp.JspTranslator.translate(JspTranslator.java:125) at org.eclipse.jdt.internal.ui.examples.jspeditor.Jsp2JavaReconcileStep.reconcileModel(Jsp2JavaReconcileStep.java:76) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:82) at org.eclipse.jdt.internal.ui.examples.jspeditor.JspReconcilingStrategy.reconcile(JspReconcilingStrategy.java:79) at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:189)
org.eclipse.jdt.ui.examples.javafamily/src/org/eclipse/jsp/AbstractJspParser.java
int c;
		StringBuffer buffer= new StringBuffer();
		fPos= 0;
		fLines= 1;
		int line= fLines;
		fReader= reader;	
		while (true) {
			c= getc();
			switch (c) {
			case -1:
				if (buffer.length() > 0)
					text(buffer.toString(), line);
				return;
			case '<':
				c= getc();
				if (c == '%') {
					
					if (buffer.length() > 0) {
						text(buffer.toString(), line);
						buffer.setLength(0);
						line= fLines;
					}
					c= getc();
					switch (c) {
					case '-':
						c= getc();
						if (c == '-') {
							parseComment();
						} else {
							ungetc(c);