switch constant issue

steve steve@netfuel.com
Mon Jun 9 16:31:00 GMT 2003


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /