it shows up in the declared fields. usually named val$<variable name>

-igor


On Fri, Apr 6, 2012 at 4:07 PM, Carl-Eric Menzel <cmen...@wicketbuch.de> wrote:
> 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

Reply via email to