Community
Participate
Working Groups
The evaluation in the context of an anonymous class which has no default constructor is currently no supported. See bug 26159 for detail. The problem is in the generation of the source used to compile the snippet. If the snippet is to evaluate is the context of an anonymous class with no default constructor, the context is no correctly recreated. To generate correctly this source, we need some information about the binding of some element contained in the AST of the base source. These binding are no resolved in the current implementation, as their resolution can be expensive and their results useless in all other (currently supported) cases. A solution in this case, may be to parse a second time the source, with the resolution of the bindings, and generated a valid source from the new AST.
Investigate for 2.1.
"Investigate for 2.1" did not lead to a resolution for this problem, since it is still around in 2.1. How about "fix in 2.2"?
Consider for 3.0
Deferred
Evaluations work in inner classes in 3.2. There is a restriction that member fields cannot be accessed (bug 45507). Re-opening to mark as works for me. Other issues should be reported as new bugs.
*** This bug has been marked as a duplicate of 45507 ***