[Nice-commit] Nice/src/bossa/syntax FormalParameters.java,1.36,1.37
Brought to you by:
bonniot
From: <bo...@us...> - 2004-02-05 23:57:55
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7404/src/bossa/syntax Modified Files: FormalParameters.java Log Message: Make sure that overloading of default values has been resolved before printing them. Also fail more clearly in case a similar bug with parameters bytecode attribute happens again in the future. Index: FormalParameters.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/FormalParameters.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** FormalParameters.java 2 Feb 2004 19:21:12 -0000 1.36 --- FormalParameters.java 5 Feb 2004 23:55:16 -0000 1.37 *************** *** 256,259 **** --- 256,260 ---- public String toString() { + defaultValue = defaultValue.noOverloading(); return type + " " + name + " = " + defaultValue; } *************** *** 575,579 **** } catch (bossa.parser.ParseException ex) { ! return null; } } --- 576,583 ---- } catch (bossa.parser.ParseException ex) { ! throw Internal.error ! ("Could not parse '" + attr.getName() + "' bytecode attribute:\n" + ! "In method: " + attr.getContainer() + "\n" + ! "Value : " + value); } } |