Re: Compilation weirdness

1998-09-09 Thread akaul
This seems to be a problem of the compiler not being able to determine that the variable has been initialized. I remember having a problem on a Win JDK - (pre 1.1.5) If you declared a variable without initializing it & later initialized it in some if-else statment - it used to crib giving errors

Re: Compilation weirdness

1998-09-08 Thread Juergen Kreileder
Bernd Kreimeier <[EMAIL PROTECTED]> writes: > public abstract class BS { > /** The local host default. */ > public static final InetAddress LOCALHOST; > > static { > InetAddress localhost = null; > try { > localhost = InetAddress.getLocalHost(); > } > catch ( UnknownH

Compilation weirdness

1998-09-08 Thread Bernd Kreimeier
public abstract class BS { /** The local host default. */ public static final InetAddress LOCALHOST; static { InetAddress localhost = null; try { localhost = InetAddress.getLocalHost(); } catch ( UnknownHostException ex ) { System.err.println("Failed to retriev