This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

switch constant issue


Hey guys,

When is this not a const when using the -fno-assume-compiled?
Class Connection
{
	static final int C_CLOSE_ACK=1;
}

/home/steve/NetFuel/src/AgentRE/src/kernel/com/netfuel/messaging/Session.java:178: error: Constant expression required.
case Connection.C_CLOSE_ACK:


gcc -v
Reading specs from /opt/gcc-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ../configure --prefix /opt/gcc-3.4
Thread model: posix
gcc version 3.3.1 20030602 (prerelease)

If this is a bug I will submit it.
--
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]