[Sablevm-developer] Re: Running Ant? - update
Brought to you by:
egagnon
From: David <db...@cs...> - 2003-03-20 19:48:13
|
Hi Etienne, I fixed the exception bug but I still cannot get it to build. I get the error: ... [javac] Compiling 209 source files to /home/david/sablecc/sablecc-2.18.0/classes BUILD FAILED file:/home/david/sablecc/sablecc-2.18.0/build.xml:173: IO error scanning directory /home/david/sablecc/sablecc-2.18.0/classes Any clue of what could cause that error? About the bug fixed: This is a bug in classpath unless the JVM spec is unclear. Method.invoke(Object o, Object[] args) takes an Object[] for the arguments. Primitive must be wrapped. Ant passes a Boolean[] as the args which is assignable to Object[]. However, the classpath do this for primitive saying it simplifies the VM: boolean[] wrapper =3D new boolean[1]; wrapper[0] =3D ((Boolean) args[i]).booleanValue(); args[i] =3D wrapper; but this last statement throws a ArrayStoreException since boolean[] is not assignable to Boolean (it is however assignable to type Object). I have included a patch that should fix that first problem. =20 David On Thu, Mar 20, 2003 at 10:39:43AM -0500, Prof. Etienne M. Gagnon wrote: > Hi David, >=20 > I tried using Ant to compile ("ant compile") my newest SableCC (2.18.0)= =20 > package on Debian/PowerPC, using sablevm 1.0.8 (with *direct*-threading= , as=20 > *inline*-threading needs tuning on ppc). >=20 > I get a java.lang.ArrayStoreException in j.l.r.Method line 391. >=20 > Didn't you say that you were able to run Ant on SableVM? >=20 > =C9tienne > --=20 > Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ > SableVM: http://www.sablevm.org/ > SableCC: http://www.sablecc.org/ >=20 --=20 --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |