This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/24833] New: Variable declared as 'final' can be assigned in conflict with Java standard


Example is found in file java.lang.VMCompiler, by code:

  private static final MessageDigest md5Digest;

  static
  {
    try
      {
        md5Digest = MessageDigest.getInstance("MD5");
      }
    catch (NoSuchAlgorithmException _)
      {
        md5Digest = null;
      }
  }

The second assignment in the catch is in conflict with Java standard. (checked
against jdk 1.5.0.)

>From a logical point of view this is not really an error, but from a
conformance point ov view it is.


-- 
           Summary: Variable declared as 'final' can be assigned in conflict
                    with Java standard
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: m4341 at abc dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24833


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