Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: Accessibility of suBclass-fields from suPERclass (reflection) Date: Sat, 16 Aug 2014 00:11:55 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <8ebedaf9-6487-4897-8c97-a83356444138@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx05.eternal-september.org; posting-host="ec23b8adc749ac2767cae0bf32782d4c"; logging-data="12801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GPl6bRz4mV5gVNPG5WxC2320elJ9+7iA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <8ebedaf9-6487-4897-8c97-a83356444138@googlegroups.com> Cancel-Lock: sha1:gFRT5EekTQBSKOCgRGK9K3lXLOs= Xref: csiph.com comp.lang.java.programmer:29679 On 15/08/14 23:20, Lew wrote: > Andreas Leitgeb wrote: >> public class Outer extends Base { >> static { >> class Inner extends Base { ... } >> } >> } >> > I don't quite know how to parse out an inner class inside a static initializer block - it doesn't become an inner class of 'Outer', and it doesn't become a nested class of 'Outer' exactly. I think it can only be used inside that block. Honestly this one is a bit of a stumper for me. It's surely the same as a local class in a static method, isn't it? -- ss at comp dot lancs dot ac dot uk