Bug 62199 - Crash while applying staticinitilization() advice to a large number of classes
Summary: Crash while applying staticinitilization() advice to a large number of classes
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 critical (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 19:48 EDT by Sam Pullara CLA
Modified: 2004-10-21 04:31 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 Sam Pullara CLA 2004-05-13 19:48:01 EDT
Here is the aspect:

package com.sampullara.testing;

public aspect UsedClasses {
  pointcut scope() : staticinitialization(*) && !within(com.sampullara.testing.UsedClasses);
  
  before() : scope() {
    System.out.println("[Initializing class: " + thisJoinPointStaticPart.getSourceLocation() + "]");
  }
}

/Users/sam/Software/WLS-STAGE/wls/server/lib:> time ajc -injars weblogic.jar -outjar 
newweblogic.jar -sourceroots ~/Projects/AspectJ/UsedClasses/src
ABORT

Exception thrown from AspectJ 1.2rc1

This might be logged as a bug already -- find current bugs at
  http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler

Bugs for exceptions thrown have titles File:line from the top stack, 
e.g., "SomeFile.java:243"

If you don't find the exception below in a bug, please add a new bug
at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
To make the bug a priority, please include a test program
that can reproduce this exception.
null
java.lang.NullPointerException
        at org.eclipse.jdt.internal.compiler.CompilationResult.computePriority(CompilationResult.java:110)
        at org.eclipse.jdt.internal.compiler.CompilationResult.quickPrioritize(CompilationResult.java:336)
        at org.eclipse.jdt.internal.compiler.CompilationResult.getProblems(CompilationResult.java:230)
        at org.eclipse.jdt.internal.compiler.CompilationResult.getAllProblems(CompilationResult.java:118)
        at org.aspectj.ajdt.internal.core.builder.AjBuildManager$4.acceptResult(AjBuildManager.java:661)
        at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.acceptResult(AjCompilerAdapter.java:178)
        at org.aspectj.ajdt.internal.compiler.WeaverAdapter.finishedWith(WeaverAdapter.java:203)
        at org.aspectj.ajdt.internal.compiler.WeaverAdapter.weaveCompleted(WeaverAdapter.java:167)
        at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:570)
        at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:239)
        at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:
114)
        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:376)
        at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:
600)
        at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:160)
        at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:94)
        at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:102)
        at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:53)
        at org.aspectj.tools.ajc.Main.run(Main.java:280)
        at org.aspectj.tools.ajc.Main.runMain(Main.java:217)
        at org.aspectj.tools.ajc.Main.main(Main.java:79)


1 fail|abort

real    37m7.541s
user    7m0.690s
sys     0m23.010s
Comment 1 Andrew Clement CLA 2004-05-14 03:25:04 EDT
I believe this is fixed in Aspectj 1.2rc2 - please can you retry with this 
version of AspectJ (that we only released yesterday).  For discussion of the 
fix see bug 58679 and bug 57432.  It is to do with attaching more than 100 
errors/warnings to a file.
Comment 2 Andrew Clement CLA 2004-08-06 05:37:55 EDT
I'm 99.9999999999999999999999% sure this is now fixed, so I'm closing the bug.
Comment 3 Adrian Colyer CLA 2004-10-21 04:31:48 EDT
Fix released as part of AspectJ 1.2.1