Originally posted by Jim Yingst:
Err... after some searching, I found the section you're apparently looking at in section 8.3.2.3 of the JLS 2nd edition. The use of "repectively static" is quite unclear here, and seems very poorly worded.</blockquote>
I was referring to the Draft edition of JLS, hence got mixed up with the sectoins.
As per the example given in the specs I get an compile time error with the following code - both javac as well as jikes
class UseBeforeDeclaration {
static { x = 100; }
static int x;
}
The example in JLS is apparantly wrong !
Could someone give the reasoning for this ?
Thanx :-)
[This message has been edited by Deepak M (edited July 14, 2000).]