Community
Participate
Working Groups
When trying to use the jdtCompilerAdapter with ant to compile the project, get this error java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.jdt.internal.compiler.parser.Parser.consumeWild per(Parser.java:7611) at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule 6087) at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parse at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parse at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parse at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(P 07) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(C 371) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler at org.eclipse.jdt.internal.compiler.batch.Main.performCompila a:2949) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.j at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompiler 79) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.tools.ant.UnknownElement.execute(UnknownElement. at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.j at org.apache.tools.ant.Project.executeTarget(Project.java:118 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets( or.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:10 at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) -1 Using the ecj.jar from link http://download3.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/download.php?dropFile=ecj.jar
Sorry forgot to mention that we are using JDK1.5
Could you please provide a test case? I'll investigate. Thanks.
Thanks for the response. I will try to produce a test case, stripped of the project dependencies. I suspect that it might be issue with our build process, it quite a complex build invovling aspects and xdoclet.
Closing as REMIND. Please reopen once you provide the test case.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.