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
fPos--;
	}
	
	private void parseDirective() throws IOException {
		StringBuffer sb= new StringBuffer();
		int pos= fPos;
		while (true) {
			int c = getc();
			if (c == '%') {
				c= getc();
				if (c == '>') {
					
					parseAttributes(pos, sb.toString());
					return;
				}
			}
			sb.append((char)c);
		}
	}
	
	private void parseTag(boolean endTag) throws IOException {
		StringBuffer sb= new StringBuffer();
		int pos= fPos;
		while (true) {
			int c= getc();
			if (c == '/') {
				c= getc();
				if (c == '>') {
					
					parseAttributes(pos, sb.toString());