Unexpected Java exception error for operations that should raise &index-out-of-bounds-error
Joseph Donaldson <[email protected]> Sun, 17 Dec 2023 19:37:15 +0000 (UTC)
| Newsgroups | gmane.lisp.scheme.bigloo |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_2349209_1930657051.1702841835305 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, Manuel, When adapting srfi64 to Bigloo, I came across the following error. When indexing outside the bounds of a vector with the jvm backend instead of receiving the expected &index-out-of-bounds-error, I was instead seeing an unexpected java exception error. I was able to fix the problem by modifying error/errno to directly instantiate and raise &index-out-of-bounds-error. In examining the prior implementation which uses the index-out-of-bounds-error procedure, it is not clear to me why it is failing. It should be called by added trace statements are not executed; it is strange. Anyway, the pull request for the fix is here: https://github.com/manuel-serrano/bigloo/pull/108. Thank You,Joseph Donaldson ------=_Part_2349209_1930657051.1702841835305 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div class=3D"ydp1ec40dc8yahoo-style-wrap" style= =3D"font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px= ;"><div dir=3D"ltr" data-setdir=3D"false">Hello, Manuel,</div><div dir=3D"l= tr" data-setdir=3D"false"><br></div><div dir=3D"ltr" data-setdir=3D"false">= When adapting srfi64 to Bigloo, I came across the following error. When ind= exing outside the bounds of a vector with the jvm backend instead of receiv= ing the expected &index-out-of-bounds-error, I was instead seeing an un= expected java exception error. I was able to fix the problem by modifying e= rror/errno to directly instantiate and raise &index-out-of-bounds-error= . In examining the prior implementation which uses the <span>index-out-of-b= ounds-error procedure, </span>it is not clear to me why it is failing. It s= hould be called by added trace statements are not executed; it is strange. = Anyway, the pull request for the fix is here: <a href=3D"https://github.com= /manuel-serrano/bigloo/pull/108" rel=3D"nofollow" target=3D"_blank" class= =3D"">https://github.com/manuel-serrano/bigloo/pull/108</a>. <br></div><div= ><br></div><div><br></div><div dir=3D"ltr" data-setdir=3D"false">Thank You,= </div><div dir=3D"ltr" data-setdir=3D"false">Joseph Donaldson<br></div><div= ><br></div><div><br></div></div></body></html> ------=_Part_2349209_1930657051.1702841835305--