Summary: | Exception occurred in listener of Java element change notification | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Micha Riser <eclipse> | ||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | daniel_megert, markus.kell.r, Olivier_Thomann | ||||||
Version: | 3.5.2 | ||||||||
Target Milestone: | 3.6 M7 | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Micha Riser
2010-03-08 10:42:01 EST
java.lang.ArrayIndexOutOfBoundsException at org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.getText(DocumentAdapter.java:400) at org.eclipse.jdt.internal.core.Member.getJavadocRange(Member.java:282) This can always happen since access to the buffer is not synchronized in Member#getJavadocRange(..). I think JDT Core should: - adapt IBuffer#getText(..) to realities and specify that it can throw IndexOutOfBoundsException - in Member#getJavadocRange(..), catch the IOOBE and return null Created attachment 161598 [details]
rough patch
Thanks for the patch, Ayushman Created attachment 162167 [details]
Updated patch
Daniel, does this change require PMC approval? I would say no since this is not an API breakage as is. It is more an update of the specification to reflect reality and warn the users of possible IOOBE. >Daniel, does this change require PMC approval?
No.
Released for 3.6M7. Verified for 3.6M7 using v_A48 code. |