Bug 324708

Summary: problem with parameterized anonymous class used in ITD method
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Clement CLA 2010-09-07 21:08:18 EDT
This kind of thing doesn't seem to work:

  public <R extends A> R SomeTarget.foo(Class<R> rs) {
    return new SomeIterator<R>() {
      public void xxx() { }
    }
  }

instead you have to promote the anonymous class to a static class in the aspect and new it from there.