public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/27399]  New: GCJ permits indexing by final object
@ 2006-05-02 19:31 cagney at redhat dot com
  2006-05-29 22:12 ` [Bug java/27399] " pinskia at gcc dot gnu dot org
  2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: cagney at redhat dot com @ 2006-05-02 19:31 UTC (permalink / raw)
  To: java-prs

This compiles:

public class ClassIndex
    implements Comparable
{
    static final ClassIndex x = new ClassIndex ();
    public int compareTo (Object o)
    {
        return 0;
    }
    public static void main (String[] args)
    {
        System.out.println (ClassIndex.x);
        byte[] b = new byte[ClassIndex.x];
        System.out.println ("Array length: " + b.length);
    }
}

$ gcj -C ClassIndex.java
$ gcj --version
gcj (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-- 
           Summary: GCJ permits indexing by final object
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cagney at redhat dot com


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


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 19:31 [Bug java/27399] New: GCJ permits indexing by final object cagney at redhat dot com
2006-05-29 22:12 ` [Bug java/27399] " pinskia at gcc dot gnu dot org
2007-01-09 20:53 ` 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).