Community
Participate
Working Groups
I'm using aspectj 1.1rc1 on Mac OS X 10.2.6 with Java 1.4.1_01 and Ant 1.5.3.1. When running any of the example ant targets with the distribution (ant bean, for example) I get an exception stating that parser2.rsc is corrupted. I tried to search the mailing list archives, however it is password blocked. My apologies if this is a basic issue, but I didn't see anything in the docs. Below is the complete output from my ant session: % ant bean Buildfile: build.xml bean: init.variables: aspectjtools.jar.available: aspectjrt.jar.available: init.taskdefs: init: Ajx: [echo] ##### Ajx list=bean/files.lst class=bean.Demo init.variables: aspectjtools.jar.available: aspectjrt.jar.available: init.taskdefs: init: clean: [delete] Deleting directory /Users/ragnar/Desktop/AOP/doc/examples/classes [delete] Deleting directory /Users/ragnar/Desktop/AOP/doc/examples/jars [mkdir] Created dir: /Users/ragnar/Desktop/AOP/doc/examples/classes [mkdir] Created dir: /Users/ragnar/Desktop/AOP/doc/examples/jars [ajc] Compiling 0 source and 1 arg files to /Users/ragnar/Desktop/AOP/doc/examples/classes [ajc] ABORT [ajc] Exception thrown from AspectJ 1.1rc1 [ajc] This might be logged as a bug already -- find current bugs at [ajc] http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler [ajc] Bugs for exceptions thrown have titles File:line from the top stack, [ajc] e.g., "SomeFile.java:243" [ajc] If you don't find the exception below in a bug, please add a new bug [ajc] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ [ajc] To make the bug a priority, please include a test program [ajc] that can reproduce this exception. [ajc] corrupted file parser2.rsc [ajc] corrupted file parser2.rsc [ajc] java.lang.ExceptionInInitializerError: corrupted file parser2.rsc [ajc] at org.eclipse.jdt.internal.compiler.parser.Parser.<clinit>(Parser.java:414) [ajc] at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:115) [ajc] at org.aspectj.ajdt.internal.compiler.AjCompiler.<init>(AjCompiler.java:36) [ajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.makeCompiler(AjBuildMana ger.java:545) [ajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager$BatchBuilder.<init>(AjBu ildManager.java:640) [ajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManage r.java:138) [ajc] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:55) [ajc] at org.aspectj.tools.ajc.Main.run(Main.java:216) [ajc] at org.aspectj.tools.ant.taskdefs.Ajc10.spoon(Ajc10.java:598) [ajc] at org.aspectj.tools.ant.taskdefs.Ajc10.execute(Ajc10.java:484) [ajc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) [ajc] at org.apache.tools.ant.Task.perform(Task.java:341) [ajc] at org.apache.tools.ant.Target.execute(Target.java:309) [ajc] at org.apache.tools.ant.Target.performTasks(Target.java:336) [ajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [ajc] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [ajc] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [ajc] at org.apache.tools.ant.Task.perform(Task.java:341) [ajc] at org.apache.tools.ant.Target.execute(Target.java:309) [ajc] at org.apache.tools.ant.Target.performTasks(Target.java:336) [ajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [ajc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [ajc] at org.apache.tools.ant.Main.runBuild(Main.java:609) [ajc] at org.apache.tools.ant.Main.start(Main.java:196) [ajc] at org.apache.tools.ant.Main.main(Main.java:235) BUILD FAILED file:/Users/ragnar/Desktop/AOP/doc/examples/build.xml:126: Compilation error: 1
This is a duplicate report of a bug we believe is fixed for the upcoming 1.1rc2 release. We expect that release will be out in the next couple of days and would appreciate it if you could test that release and followup with confirmation that this fix works on your Mac. PS - We appreciate your bug report. The duplicate bug was not at all obvious or easy to find. *** This bug has been marked as a duplicate of 34779 ***
Jim, I just wanted to confirm that this bug is indeed resolved in 1.1rc2. Thank you for identifying the duplicate and updating me on the status. For completeness, below is the current output I get with aspectJ: % ant bean Buildfile: build.xml bean: init.variables: aspectjtools.jar.available: aspectjrt.jar.available: init.taskdefs: init: Ajx: [echo] ##### Ajx list=bean/files.lst class=bean.Demo init.variables: aspectjtools.jar.available: aspectjrt.jar.available: init.taskdefs: init: clean: [mkdir] Created dir: /Users/ragnar/Desktop/AOP/doc/examples/classes [mkdir] Created dir: /Users/ragnar/Desktop/AOP/doc/examples/jars [ajc] Compiling 0 source and 1 arg files to /Users/ragnar/Desktop/AOP/doc /examples/classes Ajx-run: [echo] ##### Ajx-run list=bean/files.lst class=bean.Demo [java] p1 =(0, 0) [java] Property X changed from 0.0 to 5.0 [java] Property Y changed from 0.0 to 2.0 [java] p1 =(5, 2) [java] Property X changed from 5.0 to 6.0 [java] Property Y changed from 2.0 to 3.0 [java] p1 =(6, 3) [java] Property X changed from 6.0 to 12.0 [java] Property Y changed from 3.0 to 7.0 [java] p1 =(12, 7) [java] Writing to file: (12, 7) [java] Reading from file: test.tmp [java] Had: (12, 7) [java] Got: (12, 7) BUILD SUCCESSFUL Total time: 41 seconds