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
try {
			while (true) {
				
						
				while (Character.isWhitespace(c))
					c= s.charAt(i++);
					
				startName= i;
				while (Character.isLetterOrDigit(c) || c == ':') {
					name.append(c);
					c= s.charAt(i++);
				}
				
						
				while (Character.isWhitespace(c))
					c= s.charAt(i++);
					
				hasValue= false;
				if (c == '=') {
					c= s.charAt(i++);
					
					
					while (Character.isWhitespace(c))
						c= s.charAt(i++);
						
					startValue= i;
					
					if (startTag.equals("c:out"))  { 
						value= value.append(s.substring(startValue, Math.max(startValue, s.length() - 2)));