Summary: | NPE when using @AspectJ classes compiled with javac at ReferencePointcut.java:356 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Jakub Holy <maly.velky> | ||||
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P2 | CC: | aclement | ||||
Version: | 1.6.5 | ||||||
Target Milestone: | 1.6.6 | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Jakub Holy
2009-09-23 05:06:55 EDT
Created attachment 147869 [details]
Archiive with source codes and commands demonstrating the issue
> Since the aspects are normal .java files with special annotations then I don't > see the reason why I couldn't compile them with javac. Yes, that is the intended design, you can just use javac. > And even if there is a reason to require their compilation with ajc, > it should throw a meaningful and helpful error instead of NPE Yep, the compiler should never NPE regardless of what the user does. fix committed. The problem here is that the scope pointcut is blank. The pointcut resolver could not cope with that for an annotation style pointcut. The blank pointcut matches nothing so the effect here should be that the entire compound pointcut doesn't match anything. thanks for the test program. |