Triangle Compiler Bugs *******************Report 1******************************************** Jinhua Wu (1-12-9): 1. In Compiler.java line 61 change if(source==null) to if(source.sourceFile==null) 2. In SourceFile.java change sourceFile file declaration to public Before changing, if you try to compile no existent file, it will have Exception. [This problem was pointed out by Roland Backhouse of Nottingham U.] After changing, it will give you message: file is not accessible. ***********End of Report 1********************************************** *******************Report 2******************************************** Jinhua Wu (1-12-3) 1. In Token.java, it missed ':=' in tokenTable 2. In Scanner.java change sourceFile.eot to SourceFile.eot(line 181, maybe that is not in line 181 in your file) 3. In SourceFile.java change declartion of eol and eot to static ie. static final char eol='/n'; static final char eot='/u0000'; ***********End of Report 2********************************************** *******************Report 3******************************************** From: Mauricio Arroyo [mailto:mauricio.arroyo@gmail.com] Sent: Friday, April 18, 2008 2:05 PM To: Valtorta, Marco Subject: problems compilating the Triangle version of the ftp site Hi Dr Valtorta, I just want to let you know that I had some errors compilating the Triangle version downloaded from the ftp. I went to the website of the book and found the version 2.1 which doesn't have the compilation errors in case someone else has the same issues. ***********End of Report 3********************************************** ********************Report 4******************************************** (Mauricio Arroyo---April 25, 2008)) Be aware that the Unix and Linux machines have different versions of Java installed. > The Unix machines have 1.4.1_01. > The Linux machines have 1.5.0_09 > If I try to compile my project on the Unix machines it gives a lot of > errors. If I try it on the Linux machines is works just fine. **********End of Report 4******************************************** ***********Report 5************************************************** (Mauricio Arroyo---April 25, 2008) I compile my program but because out CLASSPATH has the values /usr/lib/java/lib/dt.jar:/usr/lib/java/lib/tools.jar:/usr/local/3rdparty/triangle/Triangle.jar:/usr/local/3rdparty/triangle/:/usr/local/etc/csce330:. it was reading the classes I guess from the 3rdparty/triangle/Triangle.jar and not from the compilation. I am far away from been an expert on Unix, but I think it was set up by the administrator, because in my case I haven't set up the CLASSPATH, it seems to be the default value when I logon. The way to fix it, set the CLASSPATH to just my Triangle project. *************End of Report 5**************************************