This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug?


this may be a 1.4 ism, that conflicts with gcj 3.2.2

file
__
class ToolOption
{
	ToolOption( Hashtable t, ... )
	{
		<mumble>
	}
<mumble>
}

file
___

class Tool
{
	protected Hashtable m_options;
<mumble>
}

file
___
class MyTool extends Tool
{
	class Option extends ToolOption
	{
		Option( ... )
		{
			super( m_options, ... );
		<mumble>
}

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

Is this just a language version problem or a bug?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]