public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/15650] New: Binary Compatibility: definite assignment checking is broken for static fields
@ 2004-05-25 15:48 aph at gcc dot gnu dot org
  2004-05-25 15:51 ` [Bug java/15650] " aph at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-05-25 15:48 UTC (permalink / raw)
  To: java-prs

This only happens with the source compiler.

We don't notice that a

final x = 10;

field has been assigned, because the assignment is compiled to

this+*(klass->otable[N]) = 10

so we get error messages:

final_int.java:6: error: final field 'x' may not have been initialized

We need to teach check_init() about the otable.

-- 
           Summary: Binary Compatibility: definite assignment checking is
                    broken for static fields
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aph at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

end of thread, other threads:[~2004-12-01  3:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-25 15:48 [Bug java/15650] New: Binary Compatibility: definite assignment checking is broken for static fields aph at gcc dot gnu dot org
2004-05-25 15:51 ` [Bug java/15650] " aph at gcc dot gnu dot org
2004-05-25 22:09 ` pinskia at gcc dot gnu dot org
2004-06-21 12:59 ` [Bug java/15650] [BC]: " pinskia at gcc dot gnu dot org
2004-07-21 16:19 ` aph at gcc dot gnu dot org
2004-12-01  3:14 ` 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).