[Nice-commit] Nice/src/bossa/syntax NiceMethod.java,1.26,1.27
Brought to you by:
bonniot
From: <bo...@us...> - 2004-02-16 21:55:38
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12009/src/bossa/syntax Modified Files: NiceMethod.java Log Message: Catch exceptions in main, and print the stack trace with the correct source-level information. Index: NiceMethod.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/NiceMethod.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** NiceMethod.java 15 Nov 2003 17:25:47 -0000 1.26 --- NiceMethod.java 16 Feb 2004 21:47:11 -0000 1.27 *************** *** 140,143 **** --- 140,151 ---- } + public boolean isMain() + { + if (! (name.toString().equals("main") && arity == 1)) + return false; + + return getType().domain()[0].toString().equals("java.lang.String[]"); + } + /**************************************************************** * Code generation |