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
private boolean fHasUnread;
	private int fUnread;
	private int fPos;
	protected int fLines= 1;
	
	AbstractJspParser() {
		super();
	}
	
	private int getc() throws IOException {
		fPos++;
		if (fHasUnread) {
			fHasUnread= false;
			return fUnread;
		}
		int ch= fReader.read();
		if (ch == '\n') 
			fLines++;
		else if (ch == '\r')  { 
			int nextCh= getc();
			if (nextCh != '\n')
				fLines++;
			return nextCh;
		}
		return ch;
	}
	
	private void ungetc(int c) {
		fHasUnread= true;
		fUnread= c;