Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23526/F:/nice/src/bossa/syntax
Modified Files:
ClassDefinition.java
Log Message:
Avoid BadSizeEx with new fields in classes with fixed typeparams, fixes bug #1069263.
Index: ClassDefinition.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/ClassDefinition.java,v
retrieving revision 1.111
retrieving revision 1.112
diff -C2 -d -r1.111 -r1.112
*** ClassDefinition.java 18 Nov 2004 17:31:15 -0000 1.111
--- ClassDefinition.java 20 Nov 2004 00:39:42 -0000 1.112
***************
*** 479,485 ****
public abstract mlsub.typing.Interface getAssociatedInterface();
! protected mlsub.typing.Monotype lowlevelMonotype()
{
! return new mlsub.typing.MonotypeConstructor(tc, getTypeParameters());
}
--- 479,490 ----
public abstract mlsub.typing.Interface getAssociatedInterface();
! mlsub.typing.Monotype lowlevelMonotype()
{
! try {
! return new mlsub.typing.MonotypeConstructor(tc, getTypeParameters());
! }
! catch(mlsub.typing.BadSizeEx e) {
! return toType(tc, getTypeParameters());
! }
}
|