public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/24835]  New: gcj accepts invalid code with static final variables
@ 2005-11-13 16:16 pinskia at gcc dot gnu dot org
  2005-11-14 13:19 ` [Bug java/24835] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-13 16:16 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-09 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-13 16:16 [Bug java/24835] New: gcj accepts invalid code with static final variables pinskia at gcc dot gnu dot org
2005-11-14 13:19 ` [Bug java/24835] " pinskia at gcc dot gnu dot org
2006-04-10 19:04 ` pinskia at gcc dot gnu dot org
2007-01-09 20:52 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).