Hi all.
Does anyone know if one is allowed to initialize static final variables
within the "try" clause of a static initializer block?
(eg.
static final int x;
static{
try
{
x = 5;
}
catch(exception e)
{...and so on ..}
)
I am working on a software project which has code like this. I am
getting compile - time error messages which state that I am NOT allowed
to fo this. Are there some tricks one can use to "trick" the compiler.
I am assuming that the code previously worked(?). I am using
jdk1.1.5-glibc.
Any assistance would be high ly appreciated.
Thank YOU!
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com