Bug 152835 - ArrayIndexOutOfBoundsException in EclipseAdapterUtils.makeLocationContext
Summary: ArrayIndexOutOfBoundsException in EclipseAdapterUtils.makeLocationContext
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.5.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 06:00 EDT by Jimisola Laursen CLA
Modified: 2006-08-23 14:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimisola Laursen CLA 2006-08-04 06:00:33 EDT
Got the following exception during startup of Eclipse

java.lang.ArrayIndexOutOfBoundsException
at org.aspectj.ajdt.internal.core.builder.EclipseAdapterUtils.makeLocationContext(EclipseAdapterUtils.java:65)
at org.aspectj.ajdt.internal.core.builder.EclipseAdapterUtils.makeSourceLocation(EclipseAdapterUtils.java:121)
at org.aspectj.ajdt.internal.core.builder.EclipseAdapterUtils.makeMessage(EclipseAdapterUtils.java:130)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager$4.acceptResult(AjBuildManager.java:959)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.acceptResult(AjPipeliningCompilerAdapter.java:402)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.afterProcessing(AjPipeliningCompilerAdapter.java:375)
at org.aspectj.ajdt.internal.compiler.CompilerAdapter.ajc$after$org_aspectj_ajdt_internal_compiler_CompilerAdapter$5$6b855184(CompilerAdapter.aj:98)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:533)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:891)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:246)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:165)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:122)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

ArrayIndexOutOfBoundsException thrown: -2
Comment 1 Matt Chapman CLA 2006-08-04 06:07:54 EDT
passing over to compiler
Comment 2 Andrew Clement CLA 2006-08-04 06:19:06 EDT
If this is a constant problem, a temporary workaround may be:

-Xset:pipelineCompilation=false

in the 'other > options' for your workspace or projects.
Comment 3 Andrew Clement CLA 2006-08-04 06:38:04 EDT
A test project for this scenario would be useful.  Without one I can merely guard on it occurring but that may mean in AJDT that we start to lose some of the contextual information that appears (it is possible some of the red squigglies may go missing or appear in funny places).  I guess the best we can do is guard for now and fix that when a simpler test scenario can be created.
Comment 4 Andrew Clement CLA 2006-08-04 07:00:51 EDT
guard committed.
Comment 5 Jimisola Laursen CLA 2006-08-04 07:09:03 EDT
Andy, are you asking for a test project from me?
Comment 6 Andrew Clement CLA 2006-08-04 07:47:25 EDT
hmmm, only half seriously because I imagine it would be hard for you to create one?  I've put the guard in, maybe we should make do with that - and if we get bug reports in about incorrect error messages we can investigate further at that time.
Comment 7 Jimisola Laursen CLA 2006-08-04 07:51:07 EDT
Great, because (sadly) I wouldn't be able to share my projects or workspace.
Will the guard for this section of code be in the next development version or how does this work?
Comment 8 Andrew Clement CLA 2006-08-04 08:08:19 EDT
it'll be in the next dev version of AspectJ - then AJDT a few days later.  if its always happening, try the workaround I suggest in comment #2.
Comment 9 Andrew Clement CLA 2006-08-23 10:49:20 EDT
is this all working for you now? can I close the bug?
Comment 10 Jimisola Laursen CLA 2006-08-23 13:09:43 EDT
seems to working for me now. haven't experienced it for a while
Comment 11 Andrew Clement CLA 2006-08-23 14:46:47 EDT
ok, let's consider it fixed.  As usual, reopen if you see something like this again... thanks for responding so quickly.