Menu

#7 ConnectionBean: fixes and cleanups

open-accepted
None
5
2001-04-29
2001-04-08
Neil Conway
No

This patch fixes the following issues with
ConnectionBean.java, v1.30:

1) Minor javadoc cleanups throughout

2) Minor code formatting cleanups

3) Remove the pointless (?) calls to super() in the
constructors for 2 of the inner classes

4) Remove redundant calls to setConnecting() in the
connect(*) methods. Now setConnecting() should be
called once for every external connect(*) call

Not too exciting. With the exception of #3, this is
just regular stuff. I think the changes in #3 are
right, but your opinion would be appreciated.

The patch against current CVS is attached in context
diff format.

Discussion

  • Neil Conway

    Neil Conway - 2001-04-08

    Context diff, v1.0

     
  • David Waite

    David Waite - 2001-04-18
    • assigned_to: nobody --> mass
     
  • David Waite

    David Waite - 2001-04-18

    Logged In: YES
    user_id=9752

    Patch 1.0 applied, but I removed the parts of the patch
    relating to setConnecting().

     
  • David Waite

    David Waite - 2001-04-20
    • status: open --> closed-accepted
     
  • Neil Conway

    Neil Conway - 2001-04-29

    Logged In: YES
    user_id=11779

    Is there a reason why the setConnecting() stuff was removed?
    AFAICT, it's been called more times than are necessary
    (there is logic in the method to handle this redundancy, but
    I'd prefer the extra calls not be made in the first place).

     
  • David Waite

    David Waite - 2001-04-29

    Logged In: YES
    user_id=9752

    Right now the 'connecting' event is supposed to be fired as
    soon as the connect method is called. It should be
    'connecting' from when the remote machine is first connected
    to, debatably from when the DNS lookup by INetAddress is
    performed.

    If what connecting means is defined better, it can move
    later in the chain. It might help if some of those
    connection routines were unchained as well.

     
  • David Waite

    David Waite - 2001-04-29
    • status: closed-accepted --> open-accepted
     

Log in to post a comment.