[kaffe] String problem / NullPointerException in KJC

Guilhem Lavaux guilhem.lavaux@free.fr
Thu Jul 3 13:07:01 2003


On Thursday 03 July 2003 19:22, Dalibor Topic wrote:
> hi Helmer,
>
> --- Helmer Kr=E4mer <hkraemer@freenet.de> wrote:
> > i think even i<k is still wrong ;) n Is the length of the string
> > and m is the length of the pattern, so the largest possible start
> > index of the pattern is n-m-1. Therefore it should be n-m-1 and
> > <=3Dk or n-m and <k, shouldn't it?
>
> I've checked Guilhem's patch in as it is.
>
> But your stricter interpretation makes sense. Could you build a rt.jar wi=
th
> the current CVS head, and another with a stricter limit and check if they
> are equal, and that the stricter interpretation passes the regression test
> suite?
>
> cheers,
> dalibor topic
>

I have checked with k=3Dn-m and i<k at the same time against k=3Dn-m and i<=
=3Dk.=20
Apparently the both give a successful compilation and the disassembly of bo=
th=20
rt.jar is completely the same. I suggest we keep the strictest limit.

Guilhem.