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


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

Re: nested class madness

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Steven Simpson <ss@domain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: nested class madness
Date Fri, 28 Oct 2011 19:17:38 +0100
Organization Aioe.org NNTP Server
Lines 23
Message-ID <278rn8-4f2.ln1@news.simpsonst.f2s.com> (permalink)
References <5bee3b28-8226-4c21-92d3-f85db5810d3c@l19g2000yqc.googlegroups.com>
NNTP-Posting-Host 3JnaVNumoybW/sOwRjlcjw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9282

Show key headers only | View raw


On 28/10/11 18:40, bob wrote:
> Can someone explain why I get this error?
>
> ProgressThread cannot be resolved to a type

You should indicate where the error appears too.

>      @Override
>      protected void onPrepareDialog(int id, Dialog dialog) {
>          switch(id) {
>          case PROGRESS_DIALOG:
>              progressDialog.setProgress(0);
>              progressThread = new ProgressThread(handler);
>              progressThread.start();
>      }

This looks like the whole of onPrepareDialog, but it's missing a brace.  
Reformat the entire file, and you'll see that ProgressThread is nested 
within this function, and is not a direct member of the enclosing class.

-- 
ss at comp dot lancs dot ac dot uk

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


Thread

nested class madness bob <bob@coolgroups.com> - 2011-10-28 10:40 -0700
  Re: nested class madness Steven Simpson <ss@domain.invalid> - 2011-10-28 19:17 +0100
    Re: nested class madness bob <bob@coolgroups.com> - 2011-10-28 23:25 -0700
    Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-29 06:38 -0700
  Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-28 22:49 -0700

csiph-web