Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361636

Summary: IndexOutOfBoundsException in MarkupMonoReconciler
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact: David Green <greensopinion>
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.6.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2011-10-21 07:39:00 EDT
I believe I got the exception below while editing a copy of http://wiki.eclipse.org/Mylyn/Contributor_Reference in a text editor. Unfortunately I don't have steps to reproduce.

Exception in thread "org.eclipse.mylyn.internal.wikitext.ui.editor.reconciler.MarkupMonoReconciler" java.lang.IndexOutOfBoundsException: end
	at java.util.regex.Matcher.region(Matcher.java:895)
	at org.eclipse.mylyn.internal.wikitext.mediawiki.core.validation.CommentValidationRule.findProblem(CommentValidationRule.java:37)
	at org.eclipse.mylyn.wikitext.core.validation.ValidationRule.findProblems(ValidationRule.java:60)
	at org.eclipse.mylyn.wikitext.core.validation.MarkupValidator.validate(MarkupValidator.java:46)
	at org.eclipse.mylyn.internal.wikitext.ui.editor.validation.DocumentRegionValidator.computeProblems(DocumentRegionValidator.java:76)
	at org.eclipse.mylyn.internal.wikitext.ui.editor.validation.DocumentRegionValidator.validate(DocumentRegionValidator.java:63)
	at org.eclipse.mylyn.internal.wikitext.ui.editor.reconciler.MarkupValidationReconcilingStrategy.reconcile(MarkupValidationReconcilingStrategy.java:79)
	at org.eclipse.mylyn.internal.wikitext.ui.editor.reconciler.MultiReconcilingStrategy.reconcile(MultiReconcilingStrategy.java:72)
	at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Comment 1 David Green CLA 2011-11-04 15:17:23 EDT
Thanks for the bug Steffen.  Created review http://review.mylyn.org/#change,100
Comment 2 David Green CLA 2011-11-04 15:18:39 EDT
Fixed
Comment 3 David Green CLA 2011-11-04 15:18:40 EDT
Created attachment 206481 [details]
mylyn/context/zip