Bug 149859 - [compiler] [1.5] jdtCompilerAdapter fails with java.lang.ArrayIndexOutOfBoundsException
Summary: [compiler] [1.5] jdtCompilerAdapter fails with java.lang.ArrayIndexOutOfBound...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-07-06 13:12 EDT by pk CLA
Modified: 2009-08-30 02:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pk CLA 2006-07-06 13:12:37 EDT
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
Comment 1 pk CLA 2006-07-06 13:13:31 EDT
Sorry forgot to mention that we are using JDK1.5
Comment 2 Olivier Thomann CLA 2006-07-07 05:41:52 EDT
Could you please provide a test case? I'll investigate.
Thanks.
Comment 3 pk CLA 2006-07-07 08:50:22 EDT
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.
Comment 4 Olivier Thomann CLA 2006-07-12 06:54:27 EDT
Closing as REMIND.
Please reopen once you provide the test case.
Comment 5 Denis Roy CLA 2009-08-30 02:08:02 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.