[daveho@cs.umd.edu: Re: [FB-Discuss] Error question.]


R. Clayton (rclayton@monmouth.edu)
(no date)


  Date: Tue, 8 Jul 2003 11:29:00 -0400
  From: David Hovemeyer <daveho@cs.umd.edu>
  To: "R. Clayton" <rclayton@monmouth.edu>
  Cc: findbugs-discuss@cs.umd.edu
  Subject: Re: [FB-Discuss] Error question.
  Content-Type: text/plain; charset=us-ascii
  Content-Disposition: inline

  On Tue, Jul 08, 2003 at 11:08:12AM -0400, R. Clayton wrote:
> findbugs produces the following output
>
> SC: HoneyMain.<init>(int,int,int) invokes java.lang.Thread.start()
> SC: HoneyMain.<init>(int,int,int) invokes java.lang.Thread.start()
>
> What does this problem mean? Why is it worth noting?

  Here's the detail message that appears in the GUI:

    <p> The constructor starts a thread. This is likely to be wrong if
        the class is ever extended/subclassed, since the thread will be started
        before the subclass constructor is started.

  Currently, the detail messages are only displayed when you use the
  FindBugs GUI. Eventually we will probably add a feature to generate
  HTML reports, which would include this information.

  Since you bring this up, I should probably add some information to
  the documentation explaining where to find out what the bug reports
  mean.

  Hope this helps!

  - -Dave



This archive was generated by hypermail 2.0b3 on Tue Aug 12 2003 - 09:30:05 EDT