On Tue, 14 Sep 2004, Ganesh Sittampalam wrote:
> So it seems to me as if J2J will need to be changed to support this :-/
Following this line of enquiry further:
public class ConstantInit {
public static final int x=3;
}
public class ConstantUse {
public static void main(String[] args) {
switch(3) {
case ConstantInit.x:
System.out.println("ok");
}
}
}
If you put those in separate files and compile ConstantInit with abc
first, then both javac and abc report an error in ConstantUse when you
compile that. If you first compile ConstantInit with javac, both are
happy.
Unless anyone objects, I will make a test case and bug out of this.
Ganesh
Received on Tue Sep 14 12:35:31 2004
This archive was generated by hypermail 2.1.8 : Tue Sep 14 2004 - 12:50:02 BST