Summary: | ArrayIndexOutOfBoundsException from source mapper | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jared Burns <jared_burns> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M2 | ||
Hardware: | Other | ||
OS: | Linux-Motif | ||
Whiteboard: |
Description
Jared Burns
2002-10-01 12:30:57 EDT
I cannot reproduce. The exception occured in this code: /** * @see ISourceElementRequestor */ public void exitMethod(int declarationEnd) { if (typeDepth >= 0) { IType currentType = this.types[typeDepth]; SourceRange sourceRange = new SourceRange( fMemberDeclarationStart[typeDepth], declarationEnd - fMemberDeclarationStart [typeDepth] + 1); IMethod method = currentType.getMethod( fMemberName[typeDepth], convertTypeNamesToSigs (fMethodParameterTypes[typeDepth])); setSourceRange( method, sourceRange, fMemberNameRange[typeDepth]); // ON THIS LINE setMethodParameterNames( method, fMethodParameterNames[typeDepth]); } } I don't see how this is possible, because you can get into this block only if typeDepth >= 0. That could be a JIT problem. Can you reproduce it all the time? If yes, could you please try without the JIT. If you can still reproduce it, please provide your workspace and exact steps to reproduce. Jared - which JDK version are you using ? 1.4.1-b14 has a lot of strange VM bugs. I was using JDK 1.4.1-b14. This only happened once. I haven't been able to reproduce it. Then close for now. Reopen with exact steps to reproduce if you get it again. |