This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
switch constant issue
- From: steve <steve at netfuel dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 09 Jun 2003 09:31:14 -0500
- Subject: switch constant issue
- Organization: Netfuel
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