Bug 513282 - Compiler crash for funny syntax within(@within(Foo) *)
Summary: Compiler crash for funny syntax within(@within(Foo) *)
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.9   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-07 17:38 EST by Alexander Kriegisch CLA
Modified: 2017-03-07 17:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kriegisch CLA 2017-03-07 17:38:15 EST
I used some funny syntax (probably not making much sense, BTW) and happened to bump into a compiler crash:

package de.scrum_master.aspect;

public aspect MetaAnnotationAspect {
  after() : within(@within(Foo) *) {}
}


java.lang.IllegalStateException
at org.aspectj.weaver.patterns.WildAnnotationTypePattern.matches(WildAnnotationTypePattern.java:264)
at org.aspectj.weaver.patterns.WildAnnotationTypePattern.matches(WildAnnotationTypePattern.java:68)
at org.aspectj.weaver.patterns.AnyWithAnnotationTypePattern.matchesExactly(AnyWithAnnotationTypePattern.java:56)
at org.aspectj.weaver.patterns.TypePattern.matchesStatically(TypePattern.java:132)
at org.aspe ... otationAspect;
                    RETURN
  end private static void ajc$postClinit()
end public class de.scrum_master.aspect.MetaAnnotationAspect