[Nice-commit] Nice/stdlib/nice/lang/inline Assert.java,1.6,1.7
Brought to you by:
bonniot
From: <bo...@us...> - 2003-12-22 01:31:02
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang/inline In directory sc8-pr-cvs1:/tmp/cvs-serv26684/stdlib/nice/lang/inline Modified Files: Assert.java Log Message: Classes now have default constructors build upon their parent's custom constructors. Index: Assert.java =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/inline/Assert.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Assert.java 30 Nov 2003 14:50:04 -0000 1.6 --- Assert.java 22 Dec 2003 01:30:59 -0000 1.7 *************** *** 70,73 **** --- 70,74 ---- code.emitDup(); + prepare(); if (args.length == 1) { *************** *** 89,97 **** errorClass = ClassType.make("nice.lang.AssertionFailed"); ! private static final Method errorInit = errorClass.addMethod ! ("<init>", Access.PUBLIC, new Type[]{}, Type.void_type), errorInitString = errorClass.addMethod ("<init>", Access.PUBLIC, new Type[]{Type.string_type}, Type.void_type); public Type getReturnType (Expression[] args) --- 90,105 ---- errorClass = ClassType.make("nice.lang.AssertionFailed"); ! private static Method errorInit, errorInitString; ! ! private static void prepare() ! { ! if (errorInit != null) ! return; ! errorInit = errorClass.addMethod ! ("<init>", Access.PUBLIC, new Type[]{}, Type.void_type); errorInitString = errorClass.addMethod ("<init>", Access.PUBLIC, new Type[]{Type.string_type}, Type.void_type); + } public Type getReturnType (Expression[] args) |