On Fri, 6 Apr 2012 10:48:35 -0700 Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> actually all variables referenced in such manner become fields of the > anonymous class and are accessible via reflection. I wasn't sure about that so before I posted my reply I did an admittedly naive test. The variable I tried did at least not show up in Class#getDeclaredFields. I agree it makes sense that it should be there somewhere (that's how anon classes work) - but where does it show up? Carl-Eric