Bug 84553 - Compiler ArrayIndexOutOfBoundsException
Summary: Compiler ArrayIndexOutOfBoundsException
Status: RESOLVED DUPLICATE of bug 84215
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-07 06:13 EST by Eric SCHAEFFER CLA
Modified: 2005-02-07 10:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric SCHAEFFER CLA 2005-02-07 06:13:22 EST
The compiler stops building generating an ArrayIndexOutOfBoundsException, maybe
due to large Java file.
The error is on org.eclipse.jdt.internal.compiler.flow.UnconditionalFlowInfo,
ligne 197.

I've (temporary) fixed the error like this (but I don't know if the fix is good ;)

            // FIXME: correction to an ArrayIndexOutOfBoundsException during
System.arrayCopy
            // Don't know if all arrays should have the same length, I just
modified the copied length (taking the original array length)
			int length;
            System.arraycopy(this.extraDefiniteInits, 0,
(copy.extraDefiniteInits = new long[length = this.extraDefiniteInits.length]),
0, this.extraDefiniteInits.length);
            System.arraycopy(this.extraPotentialInits, 0,
(copy.extraPotentialInits = new long[length]), 0, this.extraPotentialInits.length);
            System.arraycopy(this.extraDefiniteNulls, 0,
(copy.extraDefiniteNulls = new long[length]), 0, this.extraDefiniteNulls.length);
            System.arraycopy(this.extraDefiniteNonNulls, 0,
(copy.extraDefiniteNonNulls = new long[length]), 0,
this.extraDefiniteNonNulls.length);
Comment 1 Eric SCHAEFFER CLA 2005-02-07 06:29:39 EST
Sorry: 
Eclipse version is eclipse-SDK-I20050202-0800-linux-gtk
Comment 2 Olivier Thomann CLA 2005-02-07 10:01:17 EST

*** This bug has been marked as a duplicate of 84215 ***