public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/24833]  New: Variable declared as 'final' can be assigned in conflict with Java standard
@ 2005-11-13 11:38 m4341 at abc dot se
  2005-11-13 16:15 ` [Bug libgcj/24833] " pinskia at gcc dot gnu dot org
  2005-11-13 16:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: m4341 at abc dot se @ 2005-11-13 11:38 UTC (permalink / raw)
  To: java-prs

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


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

* [Bug libgcj/24833] Variable declared as 'final' can be assigned in conflict with Java standard
  2005-11-13 11:38 [Bug libgcj/24833] New: Variable declared as 'final' can be assigned in conflict with Java standard m4341 at abc dot se
@ 2005-11-13 16:15 ` pinskia at gcc dot gnu dot org
  2005-11-13 16:16 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-13 16:15 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-13 16:15 -------
So there is really two issues here, first that libgcj contains invalid code,
second gcj accepts invalid code.  This bug will track the contains invalid code
part.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-13 16:15:11
               date|                            |


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


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

* [Bug libgcj/24833] Variable declared as 'final' can be assigned in conflict with Java standard
  2005-11-13 11:38 [Bug libgcj/24833] New: Variable declared as 'final' can be assigned in conflict with Java standard m4341 at abc dot se
  2005-11-13 16:15 ` [Bug libgcj/24833] " pinskia at gcc dot gnu dot org
@ 2005-11-13 16:16 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-13 16:16 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-11-13 16:16 -------
PR 24835 will track the accepts invalid part.


-- 


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


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

end of thread, other threads:[~2005-11-13 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-13 11:38 [Bug libgcj/24833] New: Variable declared as 'final' can be assigned in conflict with Java standard m4341 at abc dot se
2005-11-13 16:15 ` [Bug libgcj/24833] " pinskia at gcc dot gnu dot org
2005-11-13 16:16 ` pinskia 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).