Bug 293457 - NPE on multiple declare @methods
Summary: NPE on multiple declare @methods
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.6   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 1.6.7   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 296054 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-27 11:24 EDT by Andrew Clement CLA
Modified: 2009-11-26 18:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2009-10-27 11:24:31 EDT
raised on the list:

> java.lang.NullPointerException
> at org.aspectj.ajdt.internal.core.builder.AsmHierarchyBuilder.visit(AsmHierarchyBuilder.java:548)
> at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:214)
> at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1246)
> at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(Compilatio ... oBuildJob.run(AutoBuildJob.java:238)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> Compile error: NullPointerException thrown: null
>
>
> Here's the aspect I'm using:
>
> package com.citi.gdos.smart.applib.service.cache;
>
> import org.springmodules.cache.annotations.Cacheable;
>
> public aspect CachingIntroduction {
>
>        declare @method: public * *..I*Dao+.set*(..): @Setter; 
>        declare @method: !@Setter public * *..I*Dao+.*(..):
>                @Cacheable(modelId="fooModel");
>
> }
Comment 1 Andrew Clement CLA 2009-11-17 14:43:10 EST
test and fix committed
Comment 2 Andrew Clement CLA 2009-11-26 18:29:57 EST
*** Bug 296054 has been marked as a duplicate of this bug. ***