I've run into this error before, some compilers (the Symantec compiler for
example) don't handle chained constructors correctly with respect to blank
finals. The following code doesn't compile on all compilers.

class A
{
        final int b;

        A( int b )
        {
                this.b = b;
        }

        A()
        {
                A(0);
        }
} 

-----Original Message-----
From: Christian Sell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 02:58p
To: [EMAIL PROTECTED]
Subject: [Eap-list] which compiler?


Hello,

I get different error message when invoking javac from within an ant task
and from within the IDE. No idea what compilers are involved except that I
set both to javac. Can anybody advise?

Below is the error message from the ant task. When I compile with Ctrl-F9,
no error occurs. The variable IS initialized in every constructor as
required. I have verified this several times, as I have never seen anything
like this before...

"file://D:/windev/dynabean/webcomponents/build/work/runtime/src/com/dynabean
s/wcf/util/AttributeMapping.java (30:34) Blank final variable 'fieldName'
may not have been initialized. It must be assigned a value in an
initializer, or in every constructor."








_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to