Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: cannot find symbol? Date: Sat, 04 May 2013 17:53:39 -0700 Organization: A noiseless patient Spider Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 5 May 2013 00:50:13 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="6556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18I+/xd2lbf7zTXoAGhlSX7WsQbbwsP9uE=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Cancel-Lock: sha1:onfQ9mBw639Iclx81PfAkR49/iM= Xref: csiph.com comp.lang.java.programmer:23829 On 5/4/2013 1:58 PM, qwertmonkey@syberianoutpost.ru wrote: > this is what I had in mind. The thing is that I wanted to get a typed object Generally speaking, that was TL;DR. SSCCE = SHORT self-contained compilable example. However, control-F allowed me to find some things in that huge mess you posted. > interface verifiableCLIContext12{ > public boolean verifyCtxt(String[] aSArs, Class TpArgK); > // public T_Ctxt getCtxtDTO(); > public Object getCtxtDTO(); > } public interface verifialbleCLIContext12 { public boolean verifyCtxt(String[] aSArs, Class TpArgK); public T getCtxtDTO(); } looks much better than using the same identifier over and over again. > class DTO_T_Ctxt12 implements verifiableCLIContext12 { This is why you fail. Mostly overuse of the same crappy identifier until you can't read it any more. I barely could read it. class DTO_T_Ctxt12 implements verifiableCLIContext12 { needs to be concrete. Now these work: > private T_Ctxt tCtxt; // operating context as will this: > public T_Ctxt getCtxtDTO(){ Etc. I didn't read the rest. I didn't verify any of the above to compile or test it.