nice-commit Mailing List for The Nice Programming Language (Page 115)
Brought to you by:
bonniot
You can subscribe to this list here.
2003 |
Jan
|
Feb
(60) |
Mar
(125) |
Apr
(183) |
May
(140) |
Jun
(227) |
Jul
(141) |
Aug
(181) |
Sep
(75) |
Oct
(89) |
Nov
(187) |
Dec
(162) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(69) |
Feb
(197) |
Mar
(98) |
Apr
(26) |
May
(10) |
Jun
(85) |
Jul
(88) |
Aug
(79) |
Sep
(80) |
Oct
(81) |
Nov
(53) |
Dec
(109) |
2005 |
Jan
(68) |
Feb
(77) |
Mar
(232) |
Apr
(79) |
May
(37) |
Jun
(37) |
Jul
(3) |
Aug
(18) |
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(10) |
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(9) |
2007 |
Jan
(2) |
Feb
(8) |
Mar
(2) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
(17) |
Dec
(6) |
2008 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <bo...@us...> - 2003-04-27 18:57:23
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1:/tmp/cvs-serv26601/src/nice/tools/testsuite Modified Files: TestCase.java Log Message: Print any exception that causes a testcase to fail during execution. Index: TestCase.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestCase.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** TestCase.java 25 Apr 2003 11:52:18 -0000 1.22 --- TestCase.java 27 Apr 2003 18:48:45 -0000 1.23 *************** *** 360,365 **** Method m = c.getMethod("main", parameterTypes); Object[] arguments = new Object[] {new String[0]}; ! m.invoke(c.newInstance(), arguments); } catch(Throwable e) { throw new TestSuiteException("Exception while invoking main()", e); } --- 360,370 ---- Method m = c.getMethod("main", parameterTypes); Object[] arguments = new Object[] {new String[0]}; ! try { ! m.invoke(c.newInstance(), arguments); ! } catch(java.lang.reflect.InvocationTargetException e) { ! throw e.getTargetException(); ! } } catch(Throwable e) { + e.printStackTrace(out); throw new TestSuiteException("Exception while invoking main()", e); } |
From: <bo...@us...> - 2003-04-27 14:56:38
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv2812 Modified Files: run Log Message: Stop if update failed. Add JAVA_HOME/bin in front of the PATH, to use their tools in all cases. Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** run 27 Apr 2003 14:49:10 -0000 1.5 --- run 27 Apr 2003 14:56:34 -0000 1.6 *************** *** 9,14 **** # We first update the tester code, then start a new copy of this file # (since it might have been updated). ! cvs update ! exec "$0" updated fi --- 9,18 ---- # We first update the tester code, then start a new copy of this file # (since it might have been updated). ! if cvs update; then ! exec "$0" updated ! else ! echo "Update of the tester code failed. Exiting." ! exit 1 ! fi fi *************** *** 36,39 **** --- 40,45 ---- export NICE_JAR=${PWD}/Nice/share/java/nice.jar + ORIGINAL_PATH="$PATH" + # We run the whole set of tests once per configuration. # This means that the test scripts must first clean up the tree, *************** *** 43,46 **** --- 49,54 ---- name="`expr match $conffile '../config\.\(.*\)'`" . $conffile + + PATH="$JAVA_HOME/bin:$ORIGINAL_PATH" config=$machine:$name |
From: <bo...@us...> - 2003-04-27 14:49:14
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv28317 Modified Files: run Log Message: Update the tester from CVS first. Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** run 27 Apr 2003 00:28:16 -0000 1.4 --- run 27 Apr 2003 14:49:10 -0000 1.5 *************** *** 6,9 **** --- 6,16 ---- set -e + if [ "$1" != "updated" ]; then + # We first update the tester code, then start a new copy of this file + # (since it might have been updated). + cvs update + exec "$0" updated + fi + # Set up variables, that can be overriden in the setup file. machine="`hostname -f`" *************** *** 44,48 **** if ../Project; then ! echo "Bootstrap SUCCESS" > $config.res else echo "Bootstrap FAILURE" > $config.res --- 51,55 ---- if ../Project; then ! echo "Bootstrap OK" > $config.res else echo "Bootstrap FAILURE" > $config.res *************** *** 76,77 **** --- 83,90 ---- scp -p ./*.id ./*.res ./*.log $us...@sh...:$results_dir fi + + echo "" + echo "======================" + echo "End of testing" + echo "======================" + echo "" |
From: <bo...@us...> - 2003-04-27 14:26:30
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1:/tmp/cvs-serv10307/testsuite/compiler/methods Modified Files: integer.testsuite Log Message: Simplified the testcase, by removing unessential code. Index: integer.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/integer.testsuite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** integer.testsuite 27 Apr 2003 09:45:15 -0000 1.4 --- integer.testsuite 27 Apr 2003 14:26:26 -0000 1.5 *************** *** 87,98 **** /// PASS /// Toplevel - abstract class Wrapped { } - class WrappedFoo extends Wrapped { String foo; } - class WrappedBar extends Wrapped { String bar; } - - String getStr(int i, Wrapped f); - getStr(i, f@Wrapped) = "failed"; - getStr(i, f@WrappedFoo) = getStr(i, f.foo); - String getStr(int i, String str); getStr(0, str@String) = "no "+str; --- 87,90 ---- |
From: <ar...@us...> - 2003-04-27 09:45:18
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1:/tmp/cvs-serv16645/F:/nice/testsuite/compiler/methods Modified Files: integer.testsuite Log Message: Code of bugreport #728270 Index: integer.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/integer.testsuite,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** integer.testsuite 1 Apr 2003 20:25:08 -0000 1.3 --- integer.testsuite 27 Apr 2003 09:45:15 -0000 1.4 *************** *** 84,85 **** --- 84,101 ---- foo(@long) {} foo(#int) {} + + /// PASS + /// Toplevel + abstract class Wrapped { } + class WrappedFoo extends Wrapped { String foo; } + class WrappedBar extends Wrapped { String bar; } + + String getStr(int i, Wrapped f); + getStr(i, f@Wrapped) = "failed"; + getStr(i, f@WrappedFoo) = getStr(i, f.foo); + + String getStr(int i, String str); + getStr(0, str@String) = "no "+str; + getStr(1, str@String) = "one "+str; + getStr(2, str@String) = "many "+str; + getStr(i, str@String) = "unknown code"; |
From: <bo...@us...> - 2003-04-27 00:28:21
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv32519 Modified Files: run Log Message: Fix path Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** run 26 Apr 2003 23:04:24 -0000 1.3 --- run 27 Apr 2003 00:28:16 -0000 1.4 *************** *** 26,31 **** cd builds ! export NICEC=${PWD}/builds/Nice/bin/nicec ! export NICE_JAR=${PWD}/builds/Nice/share/java/nice.jar # We run the whole set of tests once per configuration. --- 26,31 ---- cd builds ! export NICEC=${PWD}/Nice/bin/nicec ! export NICE_JAR=${PWD}/Nice/share/java/nice.jar # We run the whole set of tests once per configuration. |
From: <bo...@us...> - 2003-04-26 23:51:55
|
Update of /cvsroot/nice/Nice In directory sc8-pr-cvs1:/tmp/cvs-serv10793 Modified Files: Makefile Log Message: For running the testsuite, enable assertions appropriately, depending on whether the java used supports -enableassertions or not. Index: Makefile =================================================================== RCS file: /cvsroot/nice/Nice/Makefile,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** Makefile 21 Apr 2003 18:37:48 -0000 1.116 --- Makefile 26 Apr 2003 23:51:52 -0000 1.117 *************** *** 77,81 **** check: ! /usr/bin/time ${java} -Dassertions=true -classpath "classes" nice.tools.testsuite.TestNice testsuite .PHONY: coverage --- 77,85 ---- check: ! if [ `${java} -h 2>&1 | grep -- -enableassertions | wc -l` = 0 ]; then\ ! /usr/bin/time ${java} -Dassertions=true -classpath "classes" nice.tools.testsuite.TestNice testsuite; \ ! else \ ! /usr/bin/time ${java} -enableassertions -classpath "classes" nice.tools.testsuite.TestNice testsuite; \ ! fi .PHONY: coverage *************** *** 84,93 **** GCJ=gcj ! GCJJAR = /tmp/Nice-gcj.jar gcj: ! cp src/nice/tools/compiler.jar $(GCJJAR) ! jar umf src/mainClass $(GCJJAR) -C classes nice/doc -C classes nice/getopt -C classes nice/lang -C classes nice/tools/ast -C classes nice/tools/code -C classes nice/tools/compiler -C classes nice/tools/util -C classes mlsub -C classes bossa -C classes gnu ! $(GCJ) -c -o /tmp/getopt.o --resource gnu/getopt/MessagesBundle.properties classes/gnu/getopt/MessagesBundle.properties ! $(GCJ) -g --main=nice.tools.compiler.fun -o bin/nicec.bin $(GCJJAR) /tmp/getopt.o clean: --- 88,101 ---- GCJ=gcj ! GCJTEMP = /tmp/Nice-gcj.jar gcj: ! cp src/nice/tools/compiler.jar $(GCJTEMP) ! jar umf src/mainClass $(GCJTEMP) -C classes nice/doc -C classes nice/getopt -C classes nice/lang -C classes nice/tools/ast -C classes nice/tools/code -C classes nice/tools/compiler -C classes nice/tools/util -C classes mlsub -C classes bossa -C classes gnu ! $(GCJ) --main=nice.tools.compiler.fun -o bin/nicec.bin $(GCJTEMP) ! ! gcj-testsuite: ! cp src/nice/tools/compiler.jar $(GCJTEMP) ! jar umf src/mainClass $(GCJTEMP) -C classes nice/doc -C classes nice/getopt -C classes nice/lang -C classes nice/tools/ast -C classes nice/tools/code -C classes nice/tools/compiler -C classes nice/tools/util -C classes nice/tools/testsuite -C classes mlsub -C classes bossa -C classes gnu ! $(GCJ) -g --main=nice.tools.testsuite.TestNice -o bin/testsuite.bin $(GCJTEMP) clean: |
From: <bo...@us...> - 2003-04-26 23:32:13
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv32656 Modified Files: Project Log Message: Use the development compiler as the bootstrap compiler Index: Project =================================================================== RCS file: /cvsroot/nice/tester/Project,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Project 26 Apr 2003 23:04:23 -0000 1.3 --- Project 26 Apr 2003 23:32:09 -0000 1.4 *************** *** 4,7 **** --- 4,8 ---- cvs -d:pserver:anonymous@$CVS_SOURCEFORGE:/cvsroot/nice export -rHEAD Nice fi + wget -O Nice/external/nice-bootstrap.jar http://nice.sf.net/nice.jar cd Nice && make world |
From: <bo...@us...> - 2003-04-26 23:04:29
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv17364 Modified Files: Project run Log Message: Send results if bootstrap failed. Do a local copy if we are on sourceforge, ssh does not work. Index: Project =================================================================== RCS file: /cvsroot/nice/tester/Project,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Project 26 Apr 2003 22:42:35 -0000 1.2 --- Project 26 Apr 2003 23:04:23 -0000 1.3 *************** *** 1,2 **** --- 1,3 ---- + #! /bin/sh if [ ! -r Nice ]; then *************** *** 4,9 **** fi ! cd Nice && make world && cd .. || exit 1 ! ! export NICEC=${PWD}/Nice/bin/nicec ! export NICE_JAR=${PWD}/Nice/share/java/nice.jar --- 5,7 ---- fi ! cd Nice && make world Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** run 26 Apr 2003 22:42:35 -0000 1.2 --- run 26 Apr 2003 23:04:24 -0000 1.3 *************** *** 26,29 **** --- 26,32 ---- cd builds + export NICEC=${PWD}/builds/Nice/bin/nicec + export NICE_JAR=${PWD}/builds/Nice/share/java/nice.jar + # We run the whole set of tests once per configuration. # This means that the test scripts must first clean up the tree, *************** *** 39,45 **** exec > $config.log exec 2>&1 ! ! . ../Project ! if [ $? -eq 0 ]; then echo "Bootstrap SUCCESS" > $config.res else --- 42,47 ---- exec > $config.log exec 2>&1 ! ! if ../Project; then echo "Bootstrap SUCCESS" > $config.res else *************** *** 67,69 **** # Send the results to the Test Central ! scp -p ./*.id ./*.res ./*.log $us...@sh...:/home/groups/n/ni/nice/test-central/results --- 69,77 ---- # Send the results to the Test Central ! results_dir=/home/groups/n/ni/nice/test-central/results ! if [ -r $results_dir ]; then ! # We are on sourceforge! ! cp ./*.id ./*.res ./*.log $results_dir ! else ! scp -p ./*.id ./*.res ./*.log $us...@sh...:$results_dir ! fi |
From: <bo...@us...> - 2003-04-26 22:42:39
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1:/tmp/cvs-serv8588 Modified Files: Project Swing.test run Log Message: Give a nice error message if no config file is present. Made the cvs host on sourceforge configurable, since it is different from inside sourceforge. Index: Project =================================================================== RCS file: /cvsroot/nice/tester/Project,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Project 26 Apr 2003 22:22:13 -0000 1.1.1.1 --- Project 26 Apr 2003 22:42:35 -0000 1.2 *************** *** 1,5 **** if [ ! -r Nice ]; then ! cvs -d:pserver:ano...@cv...:/cvsroot/nice export -rHEAD Nice fi --- 1,5 ---- if [ ! -r Nice ]; then ! cvs -d:pserver:anonymous@$CVS_SOURCEFORGE:/cvsroot/nice export -rHEAD Nice fi Index: Swing.test =================================================================== RCS file: /cvsroot/nice/tester/Swing.test,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Swing.test 26 Apr 2003 22:22:13 -0000 1.1.1.1 --- Swing.test 26 Apr 2003 22:42:35 -0000 1.2 *************** *** 2,6 **** if [ ! -r swing ]; then ! cvs -d:pserver:ano...@cv...:/cvsroot/nice export -rHEAD swing fi cd swing --- 2,6 ---- if [ ! -r swing ]; then ! cvs -d:pserver:anonymous@$CVS_SOURCEFORGE:/cvsroot/nice export -rHEAD swing fi cd swing Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** run 26 Apr 2003 22:22:13 -0000 1.1.1.1 --- run 26 Apr 2003 22:42:35 -0000 1.2 *************** *** 11,16 **** --- 11,23 ---- user="$USER" + export CVS_SOURCEFORGE="cvs.sourceforge.net" + if [ -r setup ]; then . setup + fi + + if ! ls config.* >/dev/null 2>&1; then + echo "You must create at least one config.* file." + exit 1 fi |
From: <ar...@us...> - 2003-04-26 15:47:06
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode In directory sc8-pr-cvs1:/tmp/cvs-serv20249/F:/nice/src/gnu/bytecode Modified Files: ClassType.java Log Message: fix for bug #727651 Unhandled NoClassDefFoundError Index: ClassType.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/ClassType.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ClassType.java 9 Sep 2002 12:59:26 -0000 1.13 --- ClassType.java 26 Apr 2003 15:47:02 -0000 1.14 *************** *** 529,534 **** public Method getDeclaredMethod(String name, Type[] arg_types) { ! if ((flags & (ADD_METHODS_DONE|EXISTING_CLASS)) == EXISTING_CLASS) ! addMethods(getReflectClass()); Method method; --- 529,542 ---- public Method getDeclaredMethod(String name, Type[] arg_types) { ! if ((flags & (ADD_METHODS_DONE|EXISTING_CLASS)) == EXISTING_CLASS) { ! try { ! addMethods(getReflectClass()); ! } catch (NoClassDefFoundError e) { ! String className = e.getMessage(); ! bossa.util.User.error("Could not load class: " + ! (className == null ? "<unknown>" : className.replace('/', '.')) + ! " which is required by " + this_name); ! } ! } Method method; |
From: <bo...@us...> - 2003-04-26 13:44:28
|
Update of /cvsroot/nice/Nice/web In directory sc8-pr-cvs1:/tmp/cvs-serv9876/web Modified Files: new.xsl Log Message: Added generation of PDF and PS versions of the manual. Link directly to nice-info, that's the only one for users. Index: new.xsl =================================================================== RCS file: /cvsroot/nice/Nice/web/new.xsl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** new.xsl 11 Mar 2003 23:26:16 -0000 1.6 --- new.xsl 26 Apr 2003 13:44:23 -0000 1.7 *************** *** 87,90 **** --- 87,93 ---- <span class="small">o</span><xsl:text> </xsl:text> <a class="nav" href="manual.html">Manual</a> + (<a class="nav" href="manual.html">online</a>, + <a class="nav" href="manual.pdf">PDF</a>, + <a class="nav" href="manual.ps">PS</a>) <br /> <span class="small">o</span><xsl:text> </xsl:text> *************** *** 139,143 **** <br /> <span class="small">o</span><xsl:text> </xsl:text> ! <a class="nav" href="http://sourceforge.net/mail/?group_id=12788">Mailing List</a> <!-- <br /> --- 142,146 ---- <br /> <span class="small">o</span><xsl:text> </xsl:text> ! <a class="nav" href="http://lists.sourceforge.net/lists/listinfo/nice-info">Mailing List</a> <!-- <br /> |
From: <bo...@us...> - 2003-04-26 13:34:44
|
Update of /cvsroot/nice/Nice/web In directory sc8-pr-cvs1:/tmp/cvs-serv6621/web Modified Files: Makefile Log Message: Added generation of PDF and PS versions of the manual. Index: Makefile =================================================================== RCS file: /cvsroot/nice/Nice/web/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile 23 Apr 2003 15:57:09 -0000 1.8 --- Makefile 26 Apr 2003 13:34:37 -0000 1.9 *************** *** 1,2 **** --- 1,12 ---- + # Commands to build the website and the documentation. + # + # Requires the following external programs and packages: + # xmlto, xsltproc, docbook stylesheets (http://docbook.sourceforge.net/), + # xmltex, passivetex. + # + # On a Debian system, you can get all of these by running: + # apt-get install xmlto docbook-xsl passivetex + + PROC=xsltproc --nonet STYLESHEET=common.xsl *************** *** 6,13 **** all: index.html research.html compilation.html testimonials.html install.html \ ! roadmap.html manual.html send: all ! scp -r *.html *.css .htaccess images bo...@sh...:/home/groups/n/ni/nice/htdocs old: safety.html --- 16,23 ---- all: index.html research.html compilation.html testimonials.html install.html \ ! roadmap.html manual.html manual.pdf manual.ps send: all ! scp -r *.html *.pdf *.ps *.css .htaccess images bo...@sh...:/home/groups/n/ni/nice/htdocs old: safety.html *************** *** 15,18 **** --- 25,31 ---- manual.html: manual.xsl manual.xml $(PROC) manual.xsl manual.xml > $@ + + manual.pdf manual.ps: manual.xml + xmlto $(shell expr match $@ 'manual\.\(.*\)') manual.xml %.html: %.xml new.xsl |
From: <bo...@us...> - 2003-04-26 12:44:19
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1:/tmp/cvs-serv23509/src/nice/tools/testsuite Modified Files: TestNice.java Log Message: Added system error codes, to be able to use the testsuite in scripts. Index: TestNice.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestNice.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** TestNice.java 26 Apr 2003 12:41:20 -0000 1.24 --- TestNice.java 26 Apr 2003 12:44:16 -0000 1.25 *************** *** 160,164 **** /** ! * Main method of the application; * * @param args console arguments --- 160,169 ---- /** ! * Main method of the application. ! * ! * Returns to the system with the code: ! * 0 if there are no regressions; ! * 1 if there was at least one regression; ! * 2 if there was at least one warning on no regression; * * @param args console arguments |
From: <bo...@us...> - 2003-04-26 12:41:53
|
Update of /cvsroot/nice/Nice/src/mlsub/typing In directory sc8-pr-cvs1:/tmp/cvs-serv22595/src/mlsub/typing Modified Files: MonotypeConstructor.java Log Message: Added more debuging info. Index: MonotypeConstructor.java =================================================================== RCS file: /cvsroot/nice/Nice/src/mlsub/typing/MonotypeConstructor.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** MonotypeConstructor.java 7 Oct 2002 12:34:46 -0000 1.14 --- MonotypeConstructor.java 26 Apr 2003 12:41:50 -0000 1.15 *************** *** 124,128 **** return; else ! throw new Error("SetKind in " + this); } --- 124,128 ---- return; else ! throw new Error("SetKind in " + this +": " + value + " != " + tc.variance); } |
From: <bo...@us...> - 2003-04-26 12:41:23
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1:/tmp/cvs-serv22425/src/nice/tools/testsuite Modified Files: TestNice.java Log Message: Added more debuging info. Index: TestNice.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestNice.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** TestNice.java 25 Apr 2003 11:52:18 -0000 1.23 --- TestNice.java 26 Apr 2003 12:41:20 -0000 1.24 *************** *** 193,196 **** --- 193,205 ---- // close writer _output.close(); + + + if (getTestCasesFailed() > 0) + System.exit(1); + + if (getTestCasesWarning() > 0) + System.exit(2); + + System.exit(0); } |
From: <bo...@us...> - 2003-04-26 10:18:32
|
Update of /cvsroot/nice/Nice/web In directory sc8-pr-cvs1:/tmp/cvs-serv10062 Modified Files: manual.xml Log Message: Corrected validation errors. Index: manual.xml =================================================================== RCS file: /cvsroot/nice/Nice/web/manual.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** manual.xml 23 Apr 2003 15:50:50 -0000 1.17 --- manual.xml 26 Apr 2003 10:18:29 -0000 1.18 *************** *** 1176,1182 **** <chapter><title>Types</title> - <para> - </para> - <section id="optionTypes"><title>Option types</title> <para> --- 1176,1179 ---- *************** *** 1213,1218 **** </para> ! <section id="notNull"><title>The <literal>notNull</literal> function</title> ! <para> Sometimes, you know that a value cannot be &NULL;, although it has an option type. --- 1210,1214 ---- </para> ! <para id="notNull"> Sometimes, you know that a value cannot be &NULL;, although it has an option type. *************** *** 1239,1243 **** if it was not &NULL;. </para> - </section> <para> --- 1235,1238 ---- *************** *** 1309,1315 **** </para> <para> ! <type><<replaceable>type-variable</replaceable> ! <optional>, <replaceable>type-variable</replaceable> ... ! </optional>></type> </para> <para> --- 1304,1310 ---- </para> <para> ! <type><<replaceable>type-variable</replaceable></type> ! <optional><type>, <replaceable>type-variable</replaceable> ...</type> ! </optional><type>></type> </para> <para> |
From: <bo...@us...> - 2003-04-25 17:22:12
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv18965/src/bossa/syntax Modified Files: MethodBodyDefinition.java Log Message: Re-enabled parameter type naming. Index: MethodBodyDefinition.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/MethodBodyDefinition.java,v retrieving revision 1.117 retrieving revision 1.118 diff -C2 -d -r1.117 -r1.118 *** MethodBodyDefinition.java 23 Apr 2003 19:56:57 -0000 1.117 --- MethodBodyDefinition.java 25 Apr 2003 17:21:26 -0000 1.118 *************** *** 51,54 **** --- 51,55 ---- LocatedString name, Collection binders, + List newTypeVars, List formals, Statement body) *************** *** 61,64 **** --- 62,68 ---- this.body = body; this.declaration = null; + if (newTypeVars != null) + this.newTypeVars = (TypeConstructor[]) + newTypeVars.toArray(new TypeConstructor[newTypeVars.size()]); this.insideClass = container != null || *************** *** 287,290 **** --- 291,302 ---- } + if (newTypeVars != null) + try{ + typeScope.addSymbols(newTypeVars); + } + catch(TypeScope.DuplicateName e) { + User.error(this, e); + } + // We can resolve now Pattern.resolveType(this.typeScope, formals); *************** *** 339,343 **** // Introduce the types of the arguments Monotype[] monotypes = MonoSymbol.getMonotype(parameters); ! Typing.introduce(monotypes); // The arguments are specialized by the patterns --- 351,377 ---- // Introduce the types of the arguments Monotype[] monotypes = MonoSymbol.getMonotype(parameters); ! ! for(int n = 0; n < formals.length; n++) ! { ! Pattern pat = formals[n]; ! Monotype type = pat.getType(); ! if (type == null) ! Typing.introduce(monotypes[n]); ! else ! { ! parameters[n].type = monotypes[n] = type; ! ! // We need to find the variance of the constructor. ! // This is the only case where a type constructor is created ! // without a known variance. But we can get it easily from the ! // pattern. ! TypeConstructor tc = Types.rawType(type).head(); ! if (tc != null && tc.variance == null) ! tc.setVariance(pat.tc.variance); ! } ! } ! ! if (newTypeVars != null) ! Typing.introduce(newTypeVars); // The arguments are specialized by the patterns *************** *** 375,408 **** } - // Introduction of binders for the types of the arguments - // as in f(x@C : X) - for(int n = 0; n < formals.length; n++) - { - Pattern pat = formals[n]; - Monotype type = pat.getType(); - if (type == null) - continue; - - MonoSymbol sym = parameters[n]; - - try{ - TypeConstructor - tc = type.head(), - formalTC = ((MonotypeConstructor) sym.getMonotype()).getTC(); - - if (tc == null) - Internal.error("Not implemented ?"); - - tc.setId(formalTC.getId()); - Typing.eq(type, sym.getMonotype()); - } - catch(TypingEx e){ - throw User.error(pat.name, - "\":\" constraint for argument "+pat.name+ - " is not correct", - ": "+e); - } - } - for(int n = 0; n < formals.length; n++) { --- 409,412 ---- *************** *** 539,542 **** --- 543,547 ---- private Pattern[] formals; Collection /* of LocatedString */ binders; // Null if type parameters are not bound + private TypeConstructor[] newTypeVars; private Statement body; private boolean insideClass; |
From: <bo...@us...> - 2003-04-25 17:22:02
|
Update of /cvsroot/nice/Nice/src/mlsub/typing In directory sc8-pr-cvs1:/tmp/cvs-serv18965/src/mlsub/typing Modified Files: TypeConstructor.java Log Message: Re-enabled parameter type naming. Index: TypeConstructor.java =================================================================== RCS file: /cvsroot/nice/Nice/src/mlsub/typing/TypeConstructor.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** TypeConstructor.java 7 Oct 2002 12:34:46 -0000 1.15 --- TypeConstructor.java 25 Apr 2003 17:21:25 -0000 1.16 *************** *** 88,92 **** * Can be called from ImplementsCst. */ ! protected void setVariance(AtomicKind v) { setKind(v.getConstraint()); --- 88,92 ---- * Can be called from ImplementsCst. */ ! public void setVariance(AtomicKind v) { setKind(v.getConstraint()); |
From: <bo...@us...> - 2003-04-25 17:21:43
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1:/tmp/cvs-serv18965/src/bossa/parser Modified Files: Parser.jj Log Message: Re-enabled parameter type naming. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.155 retrieving revision 1.156 diff -C2 -d -r1.155 -r1.156 *** Parser.jj 24 Apr 2003 19:13:44 -0000 1.155 --- Parser.jj 25 Apr 2003 17:21:36 -0000 1.156 *************** *** 531,534 **** --- 531,548 ---- } + List typeConstructors(): + { + List res; + TypeConstructor tc; + } + { + { res = new LinkedList(); } + tc = typeConstructor() { res.add(tc); } + ( "," + tc = typeConstructor() { res.add(tc); } + )* + { return res; } + } + TypeIdent typeIdent(): { *************** *** 1205,1208 **** --- 1219,1223 ---- | tc=typeIdent() + [ ":" type=monotype() ] ) | *************** *** 1214,1218 **** ) [ "(" additional=typeIdent() ")" ] - [ ":" type=monotype() ] { return new Pattern(name, tc, val, exactlyAt, additional, type, loc); --- 1229,1232 ---- *************** *** 1223,1227 **** {} { ! identOrBackquoted() [ "<" strings() ">" ] "(" } --- 1237,1241 ---- {} { ! [ "<" typeConstructors() ">" ] identOrBackquoted() [ "<" strings() ">" ] "(" } *************** *** 1254,1258 **** Pattern p; Collection binders=null; ! //List newTypeVars=null; LinkedList parameters=new LinkedList(); Statement body; --- 1268,1272 ---- Pattern p; Collection binders=null; ! List newTypeVars=null; LinkedList parameters=new LinkedList(); Statement body; *************** *** 1260,1269 **** } { name=identOrBackquoted() [ "<" binders=strings() ">" ] - // introducing new Type variables - // [ "[" newTypeVars=typeConstructors() "]" ] - "(" ( --- 1274,1283 ---- } { + // introducing new Type variables + [ "<" newTypeVars=typeConstructors() ">" ] + name=identOrBackquoted() [ "<" binders=strings() ">" ] "(" ( *************** *** 1274,1278 **** body = code() { return new MethodBodyDefinition(container,name,binders, ! //newTypeVars, parameters,body); } } --- 1288,1292 ---- body = code() { return new MethodBodyDefinition(container,name,binders, ! newTypeVars, parameters,body); } } |
From: <bo...@us...> - 2003-04-25 17:21:30
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1:/tmp/cvs-serv18965/testsuite/compiler/methods Added Files: parameterTypeNaming.testsuite Log Message: Re-enabled parameter type naming. --- NEW FILE: parameterTypeNaming.testsuite --- /// Global class A {} class B extends A { String b; } <A T> T foo(T); /// PASS /// Toplevel foo(a) = a; <X> foo<T>(b@B : X) { X copy = b.foo(); String useB = copy.b; return copy; } /// FAIL /// Toplevel // : can only come after a real dispatch, otherwise it is useless. <X> foo<T>(a : X) {} |
From: <bo...@us...> - 2003-04-25 11:52:21
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1:/tmp/cvs-serv2683/src/nice/tools/testsuite Modified Files: TestNice.java TestCase.java Log Message: Allow the Nice runtime to be specified on the command line (useful for running a natively compiled version of the testsuite and compiler). Index: TestNice.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestNice.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** TestNice.java 18 Mar 2003 09:40:50 -0000 1.22 --- TestNice.java 25 Apr 2003 11:52:18 -0000 1.23 *************** *** 147,150 **** --- 147,161 ---- + /** + * Classpath entry that contains the Nice standard library. + * + * This is only needed when the testsuite is not run from a JVM + * (for instance after native compilation), or if the standard library + * is not in the classpath. + * + */ + private static String _runtime; + + /** *************** *** 200,203 **** --- 211,216 ---- else if ("-comment".equalsIgnoreCase(s)) _writeComments = true; + else if ("-runtime".equalsIgnoreCase(s)) + _runtime = args[i++]; else return false; *************** *** 425,428 **** --- 438,450 ---- static boolean getWriteComments() { return _writeComments; + } + + + /** + * Returns the runtime, where the Nice standard library is. + * + */ + static String getRuntime() { + return _runtime; } Index: TestCase.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestCase.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** TestCase.java 8 Apr 2003 13:56:21 -0000 1.21 --- TestCase.java 25 Apr 2003 11:52:18 -0000 1.22 *************** *** 329,332 **** --- 329,333 ---- compilation.sourcePath = tempDir; compilation.destinationDir = tempDir; + compilation.runtimeFile = TestNice.getRuntime(); return nice.tools.compiler.fun.compile (compilation, packageName, null, null, false); |
From: <bo...@us...> - 2003-04-25 01:09:41
|
Update of /cvsroot/nice/Nice/debian In directory sc8-pr-cvs1:/tmp/cvs-serv24173/debian Modified Files: changelog Log Message: Bugfix (overloaded symbols used inside && or || expressions). Index: changelog =================================================================== RCS file: /cvsroot/nice/Nice/debian/changelog,v retrieving revision 1.150 retrieving revision 1.151 diff -C2 -d -r1.150 -r1.151 *** changelog 19 Apr 2003 08:47:28 -0000 1.150 --- changelog 25 Apr 2003 01:09:38 -0000 1.151 *************** *** 1,3 **** ! nice (0.7.9) unstable; urgency=low * Allow implementations of methods declared in Java to dispatch on --- 1,3 ---- ! nice (0.7.9-1) unstable; urgency=low * Allow implementations of methods declared in Java to dispatch on *************** *** 9,12 **** --- 9,13 ---- * Compilation does not fail anymore if some classes on the classpath have an invalid bytecode format. + * Bugfix (overloaded symbols used inside && or || expressions). -- Daniel Bonniot <bo...@us...> Sat, 19 Apr 2003 10:40:02 +0200 |
From: <bo...@us...> - 2003-04-24 19:13:48
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1:/tmp/cvs-serv14913/src/bossa/parser Modified Files: Parser.jj Log Message: Deleted some commented out parts, that won't probably ever be used. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.154 retrieving revision 1.155 diff -C2 -d -r1.154 -r1.155 *** Parser.jj 24 Apr 2003 13:35:31 -0000 1.154 --- Parser.jj 24 Apr 2003 19:13:44 -0000 1.155 *************** *** 111,116 **** | < LBRACE: "{" > | < RBRACE: "}" > - // | < LPRAGMA: "<*" > - // | < RPRAGMA: "*>" > | < DOT: "." > | < COLON: ":" > --- 111,114 ---- *************** *** 634,638 **** void atomics(List res): ! // if init is null, we just want lookahead { AtomicConstraint k; --- 632,636 ---- void atomics(List res): ! // if res is null, we just want lookahead { AtomicConstraint k; *************** *** 858,875 **** } - /* - TypeParameters typeParameters(): - { - List res=new ArrayList(); - Monotype t; - } - { - ( "<" - t=monotype() { res.add(t); } - ( "," t=monotype() { res.add(t); } )* - ">" ) - { return new TypeParameters(res); } - } - */ /***********************************************************************/ /* Classes */ --- 856,859 ---- |
From: <ar...@us...> - 2003-04-24 13:35:36
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1:/tmp/cvs-serv14258/F:/nice/src/bossa/parser Modified Files: Parser.jj Log Message: A bit stricter parsing and commented some unused parts. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.153 retrieving revision 1.154 diff -C2 -d -r1.153 -r1.154 *** Parser.jj 6 Apr 2003 20:45:57 -0000 1.153 --- Parser.jj 24 Apr 2003 13:35:31 -0000 1.154 *************** *** 48,52 **** return symb(t.image,t); } ! private static final Expression trueExp = new IdentExp(new LocatedString("true", Location.nowhere())); --- 48,52 ---- return symb(t.image,t); } ! /* private static final Expression trueExp = new IdentExp(new LocatedString("true", Location.nowhere())); *************** *** 54,58 **** private static final Expression falseExp = new IdentExp(new LocatedString("false", Location.nowhere())); ! static List globalDefinitions; } --- 54,58 ---- private static final Expression falseExp = new IdentExp(new LocatedString("false", Location.nowhere())); ! */ static List globalDefinitions; } *************** *** 111,116 **** | < LBRACE: "{" > | < RBRACE: "}" > ! | < LPRAGMA: "<*" > ! | < RPRAGMA: "*>" > | < DOT: "." > | < COLON: ":" > --- 111,116 ---- | < LBRACE: "{" > | < RBRACE: "}" > ! // | < LPRAGMA: "<*" > ! // | < RPRAGMA: "*>" > | < DOT: "." > | < COLON: ":" > *************** *** 128,132 **** | < PLUS: "+" > | < MINUS: "-" > ! | < POWER: "**" > | < MULT: "*" > | < SLASH: "/" > --- 128,132 ---- | < PLUS: "+" > | < MINUS: "-" > ! // | < POWER: "**" > | < MULT: "*" > | < SLASH: "/" > *************** *** 858,861 **** --- 858,862 ---- } + /* TypeParameters typeParameters(): { *************** *** 870,874 **** { return new TypeParameters(res); } } ! /***********************************************************************/ /* Classes */ --- 871,875 ---- { return new TypeParameters(res); } } ! */ /***********************************************************************/ /* Classes */ *************** *** 1966,1970 **** { ( ! ( t="+" | t="-" ) res=UnaryExpression() { res=CallExp.create(symb(t),res); } | --- 1967,1971 ---- { ( ! ( t="+" | t="-" ) res=PrimaryExpression() { res=CallExp.create(symb(t),res); } | *************** *** 1995,1999 **** { Expression res; Token t; } { ! ( t="~" | t="!" ) res=UnaryExpression() { return CallExp.create(symb(t),res); } --- 1996,2000 ---- { Expression res; Token t; } { ! ( t="~" | t="!" ) res=PrimaryExpression() { return CallExp.create(symb(t),res); } *************** *** 2663,2668 **** { t = "assert" ! condition = Expression() ! ( ":" message = Expression() { call = CallExp.create(symb(t), condition, message); } | --- 2664,2669 ---- { t = "assert" ! condition = SideEffectFreeExpression() ! ( ":" message = SideEffectFreeExpression() { call = CallExp.create(symb(t), condition, message); } | |