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