Summary: | Array out of bounds error while editing Java file | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jonathan Gossage <jgossage> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | channingwalton, jonathan |
Version: | 3.0 | ||
Target Milestone: | 3.0 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Jonathan Gossage
2003-11-03 15:07:00 EST
I can not reproduce the problem. Jonathan - Can you reproduce the bug with this simple test case every time? Unfortunately, no. I get anywhere between 10 and 20 of these a day and they all exhibit different stack traces. I run on a dual 933Mhz machine with 1GB of physical memory at work. I also experience the problem at home but less frequently. There I run on a dual Athlon MP2200 system with 2GB of memory. I believe that all these problems are related to thread synchronization issues between the code that is parsing the statement being typed and the code that is managing the GUI. Reproducing the problem is difficult because I believe that you need an exact sequence of timing to make any specific set of symptoms reappear. I believe that you may need to do a code audit to verify that there are no synchronization holes and plug those which may exist. Regards Jonathan The method org.eclipse.jdt.internal.compiler.parser.diagnose.Util#computeDietRange (TypeDeclaration[] types) use static fields. I think the problem come from these fields and multithreading. I change computeDietRange() to not use static fields. Fixed. *** Bug 46149 has been marked as a duplicate of this bug. *** Verified. |