Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23829

Re: cannot find symbol?

From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: cannot find symbol?
Date 2013-05-04 17:53 -0700
Organization A noiseless patient Spider
Message-ID <km4ac5$6cs$1@dont-email.me> (permalink)
References <km3spu$v80$1@speranza.aioe.org>

Show all headers | View raw


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<T_Ctxt>{
>   public boolean verifyCtxt(String[] aSArs, Class<? extends T_Ctxt> TpArgK);
> // public T_Ctxt getCtxtDTO();
>   public Object getCtxtDTO();
> }

public interface verifialbleCLIContext12<T> {
    public boolean verifyCtxt(String[] aSArs, Class<? extends T> TpArgK);
    public T getCtxtDTO();
}

looks much better than using the same identifier over and over again.

> class DTO_T_Ctxt12<T_Ctxt> implements verifiableCLIContext12<T_Ctxt> {

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<T_Ctxt> {

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.



Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

cannot find symbol? qwertmonkey@syberianoutpost.ru - 2013-05-04 20:58 +0000
  Re: cannot find symbol? markspace <markspace@nospam.nospam> - 2013-05-04 17:53 -0700
  Re: cannot find symbol? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-05-04 18:07 -0700

csiph-web