Community
Participate
Working Groups
I got randomly following exceptions in my LUA Projects (Eclipse LDT). While debugging I found out that the same instance of TodoTaskSimpleParser is used in multiple threads. While having instance variables (contentPos and contentEnd) the threads will battle against each other for updating the variables parsing different contents. Some of them run out of scope and get into trouble. java.lang.ArrayIndexOutOfBoundsException: 3579 at org.eclipse.dltk.compiler.task.TodoTaskSimpleParser.findEndOfLine(TodoTaskSimpleParser.java:159) at org.eclipse.dltk.compiler.task.TodoTaskSimpleParser.parse(TodoTaskSimpleParser.java:80) at org.eclipse.dltk.compiler.task.TodoTaskSimpleParser.parse(TodoTaskSimpleParser.java:70) at org.eclipse.dltk.core.builder.AbstractTodoTaskBuildParticipantType$TodoTaskBuildParticipant.build(AbstractTodoTaskBuildParticipantType.java:86) at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.buildModule(StandardScriptBuilder.java:344) at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.processModule(StandardScriptBuilder.java:287) at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.access$0(StandardScriptBuilder.java:282) at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder$BuildModulesJob.run(StandardScriptBuilder.java:81) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Looks like a duplicate of #522195.