Bug 324708 - problem with parameterized anonymous class used in ITD method
Summary: problem with parameterized anonymous class used in ITD method
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 21:08 EDT by Andrew Clement CLA
Modified: 2010-09-07 21:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.