[Bug java/17500] [4.0 Regression] Anonymous inner class compile freakout

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 24 19:44:00 GMT 2004


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-24 19:44 -------
Reduced test case:

public class pr17500
{
  public Object m1 (final Object one)
  {
    return new Comparable()
      {
	public int compareTo(Object other)
	{
	  return one == other ? 0 : 1;
	}
      };
  }

  public Object m2 (final Object two)
  {
    return new Comparable()
      {
	public int compareTo(Object other)
	{
	  return two == other ? 0 : 1;
	}
      };
  }
}


The bug has to do with mutating data returned from
a cache -- oops.  I have a patch I'm testing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-24 19:44:41
               date|                            |


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



More information about the Gcc-bugs mailing list