bug?

Tom Tromey tromey@redhat.com
Fri Feb 28 03:05:00 GMT 2003


>>>>> "Julia" == Julia Smith <julias@macrovision.com> writes:

Julia> The compiler complains that "super( m_options, ... )" can't
Julia> reference m_options before the super class constructor has been
Julia> called, I suppose because Option is seen as a subclass of
Julia> MyTool, but it goes down fine on = a 1.4 compiler (Borlands).

Julia> Is this just a language version problem or a bug?

Looks like a bug to me.
Could you file a PR for this?

I've appended a complete test case that you could put in the PR.
It's a little easier if the test case is ready to be fed directly
into the compiler.

thanks,
Tom


import java.util.*;

class toolopt
{
  public toolopt (Hashtable t)
  {
  }
}

class tool
{
  protected Hashtable m_opts;
}

public class mytool extends tool
{
  class option extends toolopt
  {
    option ()
    {
      super(m_opts);
    }
  }
}



More information about the Java mailing list