Community
Participate
Working Groups
Build: I20060216-1200 I found a number of ArrayIndexOutOfBoundsExceptions in my log file from yesterday. Sorry, I'm not sure what I was doing at the time. Hopefully the info in the log is enough...
Created attachment 35077 [details] Log file Sample stack trace: java.lang.ArrayIndexOutOfBoundsException at org.eclipse.jdt.core.dom.ASTRecoveryPropagator.visitNode(ASTRecoveryPropagator.java:164) at org.eclipse.jdt.core.dom.DefaultASTVisitor.visit(DefaultASTVisitor.java:166) at org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:133)
Fixed and test added ASTConverterTestAST3_2#test0634() The problem is in ASTRecoveryPropagator#visitNode(ASTNode node) ... if(this.replacedTokensFlagged != null) { for (int i = 0; i <= this.data.removedTokensPtr; i++) { // should be // for (int i = 0; i <= this.data.replacedTokensPtr; i++) { if(this.data.replacedTokensStart[i] >= start && this.data.replacedTokensEnd[i] <= end) { return true; } } } ...
Verified using I20060328-0010 for 3.2M6 by checking the source code.