| Summary: | StringIndexOutOfBoundsException in ConsoleDocumentAdapter | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Anton Leherbauer <aleherb+eclipse> | ||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | d.sadilek, daniel_megert, darin.eclipse, dj.houghton, jamesblackburn+eclipse, jonas, philippe_mulet, rfong, tobias.schwarz, wbprio | ||||
| Version: | 3.3 | Flags: | philippe_mulet:
pmc_approved+
|
||||
| Target Milestone: | 3.3.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Anton Leherbauer
Happens on 3.4 as well:
public class CarriageReturn {
public static void main(String[] args) {
System.out.print("\r");
}
}
Created attachment 81452 [details]
patch
Patch. Missing case for a line/document that is only '\r'.
Released to HEAD. Should also fix in 3.3.2. Fixed in 3.3.2 and HEAD. Please verify, Mike. This fix brings more bad than it does good, see bug 208084. This needs to be pulled out for 3.4 M3 and also reverted for 3.3.2. re-closing, the patch that fixes 208084 is built on this fix. Needs PMC approval. This fix is really one fix along with the fix for bug 208084 *** Bug 208084 has been marked as a duplicate of this bug. *** Justification: Simply a bug in the console that people run into once in a while when the console processes a single '\r' character as one chunk of output. +1 for 3.3.2 *** Bug 211431 has been marked as a duplicate of this bug. *** *** Bug 215011 has been marked as a duplicate of this bug. *** *** Bug 217976 has been marked as a duplicate of this bug. *** Hello, I use Eclipse 3.3.2 (M20080221-1800) on Mac OS X Leopard. I still got ArrayIndexOutOfBoundsExceptions in StyledTextRenderer. For example, in calculateClientArea and textChanging. I found out that these exceptions only occur if I set a "Fixed width console" in the preferences. The exceptions then occur after the first line with more than the set maximum character width. I can easily reproduce this error by activating the "Fixed width console" feature and then simply typing in more characters than maximum character width. Best regards Daniel Sadilek (In reply to comment #15) > I can easily reproduce this error by activating the "Fixed width console" > feature and then simply typing in more characters than maximum character width. > Best regards > Daniel Sadilek Then please open a new bug with steps and test case. |