[Bug java/24835] New: gcj accepts invalid code with static final variables
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 13 16:16:00 GMT 2005
The following code is invalid:
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
class a
{
private static final MessageDigest md5Digest;
static
{
try
{
md5Digest = MessageDigest.getInstance("MD5");
}
catch (NoSuchAlgorithmException _)
{
md5Digest = null;
}
}
}
-------
But is accepted.
--
Summary: gcj accepts invalid code with static final variables
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24835
More information about the Gcc-bugs
mailing list