vishesh - 2008-03-18

Logged In: YES
user_id=1895404
Originator: NO

There is a something wrong in the ClassDeclaration class

public ClassDeclaration(ModifierList modiflist, String name, TypeName[] baseclasses, TypeName[] ifaces,MemberDeclarationList fieldlist) {
this(modiflist, name, baseclasses, ifaces, fieldlist, true);
}
/****************************************************************************
The call to a fellow constructor using "this", the above constructor passes
the last value as true which is hard coded and _isInterface variable in
the constructor below will always be false...It looks like the isInterface
is not supposed to be working for now.
****************************************************************************/

public ClassDeclaration(ModifierList modiflist, String name, TypeName[] baseclasses, TypeName[] ifaces,
MemberDeclarationList fieldlist, boolean is_class) {
super();
baseclasses = (baseclasses == null) ? new TypeName[0] : baseclasses;
ifaces = (ifaces == null) ? new TypeName[0] : ifaces;
set(modiflist, name, baseclasses, ifaces, fieldlist);
this._isInterface = (!is_class);
}