Bug 298811 - java.lang.NullPointerException at org.aspectj.weaver.Shadow.getGenericArgTypes(Shadow.java:175)
Summary: java.lang.NullPointerException at org.aspectj.weaver.Shadow.getGenericArgType...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: IDE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 22:47 EST by glea CLA
Modified: 2010-01-11 13:34 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 glea CLA 2010-01-04 22:47:05 EST
Build Identifier: 20090621-0832

I have an @Aspect with a number of simple @Pointcuts, which are then combined in another @Pointcut which is combined with some others in an @Around advice.
When I changed the pointcut in the @Around (from something legal to something else legal), an error dialog appeared containing the following exception:

java.lang.NullPointerException
at org.aspectj.weaver.Shadow.getGenericArgTypes(Shadow.java:175)
at org.aspectj.weaver.patterns.ArgsPointcut.getArgumentsToMatchAgainst(ArgsPointcut.java:88)
at org.aspectj.weaver.patterns.ArgsPointcut.matchInternal(ArgsPointcut.java:76)
at org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:146)
at org.aspectj.weaver.patterns.AndPointcut.matchInternal(AndPointcut.java:52)
at org.aspectj.weaver.patterns.Po ... d public 
...
(proprietary information deleted)

Reproducible: Couldn't Reproduce
Comment 1 Andrew Clement CLA 2010-01-11 13:34:58 EST
Looks like the getResolvedSignature() call within the Shadow.getGenericArgTypes() method returned null.   There are some convoluted routes through that method which could lead to a null but without more to go on, it'll be tricky to investigate further.  Let me know if you see it again, I'll bump this bug down to a lower priority for now.