[Nice-commit] Nice/stdlib/nice/lang/inline Assert.java,1.7,1.8
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2005-02-01 23:02:13
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang/inline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6414/F:/nice/stdlib/nice/lang/inline Modified Files: Assert.java Log Message: Workaround for bug #1113263 Index: Assert.java =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/inline/Assert.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Assert.java 22 Dec 2003 01:30:59 -0000 1.7 --- Assert.java 1 Feb 2005 23:01:35 -0000 1.8 *************** *** 52,56 **** Label end = new Label(code); ! if (this.assertEnableCheck) code.ifAssertionsDisabledGoto (((ClassExp)comp.topLambda).getAssertionEnabledField(), end); --- 52,56 ---- Label end = new Label(code); ! if (this.assertEnableCheck && args[0] != QuoteExp.falseExp) code.ifAssertionsDisabledGoto (((ClassExp)comp.topLambda).getAssertionEnabledField(), end); *************** *** 61,64 **** --- 61,68 ---- branchOp.compileJump(comp, ((ApplyExp)args[0]).getArgs(), end); } + else if (args[0] == QuoteExp.falseExp) + { + //always continue to throwing exception + } else { |