excilys/androidannotations — Issue #105: @Touch compilation error
Author: harry41
Created: 2012-02-14 12:26:25+00:00
State: open

Hi everyone !

I have a problem with AA 2.4 using @Touch annotation. Here is My Code :

@Touch(R.id.layoutGlobal)
public boolean layoutGlobalTouch(MotionEvent event) {
try {
if (mGestureDetector.onTouchEvent(event)) {
return true;
}
} catch (Exception e) {
showError(e);
}
return true;
}

Here is the error :

Unexpected error. Please report an issue on AndroidAnnotations, with the following content:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.rangeCheck(Unknown Source) at
java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at
com.googlecode.androidannotations.processing.ItemSelectedProcessor.process(ItemSelectedProcessor.java:87) at
com.googlecode.androidannotations.processing.ModelProcessor.process(ModelProcessor.java:47) at
com.googlecode.androidannotations.AndroidAnnotationProcessor.processAnnotations(AndroidAnnotationProcessor.java:444) at
com.googlecode.androidannotations.AndroidAnnotationProcessor.processThrowing(AndroidAnnotationProcessor.java:322) at
com.googlecode.androidannotations.AndroidAnnotationProcessor.process(AndroidAnnotationProcessor.java:295) at
org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139) at
org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121) at
org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorMa
nager.java:159) at
org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcesso
rManager.java:134) at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:813) at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:432) at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:364) at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:178) at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:301) at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:60) at
org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:254) at
org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:173) at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at
org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) at
org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432) at org.eclipse.ui.actions.BuildAction
$1.runInWorkspace(BuildAction.java:305) at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Need help please :$

( I have some projects running on AA that doesn't compile anymore ... )