| Summary: | ArrayIndexOutOfBoundsException in org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Terry Parker <tparker> |
| Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | amj87.iitr, james.steadman |
| Version: | 3.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | stalebug | ||
|
Description
Terry Parker
I couldn't reproduce this but the suggested fix looks ok to me. Jay, potential candidate for M4? (In reply to comment #1) > I couldn't reproduce this but the suggested fix looks ok to me. > Jay, potential candidate for M4? I had a quick look at it too and couldn't think of a better approach. If you have have a good look at the fix suggested, I can push this for M4. Terry, would you be able to post a patch? One with a test would be nice. with the little time I spent, I couldn't force the error. The last I tried, I wasn't able to reproduce this. It would be nice to have a test case for this bug. I've just created an account to say that this seems to be present also in Eclipse 4.4M6. I was also having it in the current stable release that can be downloaded from eclipse.org. I'm not sure exactly what I did that caused the error to occur. Here is an error flagged in the editor pane: Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 3 at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields(SourceTypeBinding.java:721) It seems that even if I delete the Java file that it's flagging the error simply moves up a package or so and flags a different file with the same error. Popup dialog gives error: Errors occurred during the build. Errors running builder 'Java Builder' on project 'xxxxx'. 3 Any fix for this would be great, or a way that I can resolve the issue myself, because currently I cannot build my project and I'm not able to get rid of this error even through deleting my .metadata folder and re-importing all my projects. I'm running Win 8.1 with Java 1.7.0_21 If you'd like any more info please let me know and I'll see what I can do. (In reply to James Steadman from comment #4) > Any fix for this would be great, or a way that I can resolve the issue > myself, because currently I cannot build my project and I'm not able to get > rid of this error even through deleting my .metadata folder and re-importing > all my projects. > James, the fix for this looks fairly straightforward, but I think we would all like to have a reproducible test case that can be attached to this bug, so that we can create a regression test and verify that the proposed fix is appropriate. Could you try to create such a reproducible test case? IIRC, I failed in my first attempt to create a reproducible test, but I'm pretty sure it involves having an unresolved symbol in a class that contains annotations (the reentry into SourceTypeBinding.fields() is causes by the ASTNode.resolveAnnotations() call). I think the annotation itself is an unresolved class. In terms of working around the bug, you can look to see that all of the annotations in your project(s) are resolvable. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |